nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ApiConnectionDetails {
    #[builder(into)]
    #[serde(rename = "apiUri")]
    api_uri: String,
    #[serde(rename = "tokenSecretRid")]
    token_secret_rid: super::SecretRid,
}
impl ApiConnectionDetails {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(api_uri: impl Into<String>, token_secret_rid: super::SecretRid) -> Self {
        Self::builder().api_uri(api_uri).token_secret_rid(token_secret_rid).build()
    }
    /// The URI to connect to hit the endpoints specified in the spec.
    #[inline]
    pub fn api_uri(&self) -> &str {
        &*self.api_uri
    }
    /// Secret Rid of token secret stored in Secrets Service.
    #[inline]
    pub fn token_secret_rid(&self) -> &super::SecretRid {
        &self.token_secret_rid
    }
}