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 CreateApiKeyResponse {
    #[builder(custom(type = super::ApiKey, convert = Box::new))]
    #[serde(rename = "apiKeyMetadata")]
    api_key_metadata: Box<super::ApiKey>,
    #[builder(into)]
    #[serde(rename = "apiKeyValue")]
    api_key_value: String,
}
impl CreateApiKeyResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        api_key_metadata: super::ApiKey,
        api_key_value: impl Into<String>,
    ) -> Self {
        Self::builder()
            .api_key_metadata(api_key_metadata)
            .api_key_value(api_key_value)
            .build()
    }
    #[inline]
    pub fn api_key_metadata(&self) -> &super::ApiKey {
        &*self.api_key_metadata
    }
    #[inline]
    pub fn api_key_value(&self) -> &str {
        &*self.api_key_value
    }
}