NominalClientBuilder#
- pub struct NominalClientBuilder#
Builds a
NominalClientwhen callers need to customize optional client settings.The default base URL is
https://api.gov.nominal.io/api, and the default user agent isnominal-rust/<crate version>.
Implementations#
- impl NominalClientBuilder
-
- pub fn user_agent(self, name: &str, version: &str) -> Self#
Override the default
User-Agentvalue.The generated header starts with
name/version.Self::buildreturnsError::InvalidUserAgentunless the name and version satisfyProductAgent::new.
- pub fn build(self) -> Result<NominalClient>#
Trait implementations#
Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe