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 ModuleMetadata {
    #[serde(rename = "rid")]
    rid: super::super::modules::api::ModuleRid,
    #[builder(into)]
    #[serde(rename = "apiName")]
    api_name: String,
    #[builder(into)]
    #[serde(rename = "title")]
    title: String,
    #[builder(into)]
    #[serde(rename = "description")]
    description: String,
    #[serde(rename = "createdBy")]
    created_by: super::super::scout::rids::api::UserRid,
    #[serde(rename = "createdAt")]
    created_at: conjure_object::DateTime<conjure_object::Utc>,
    #[builder(default, into)]
    #[serde(rename = "archivedAt", skip_serializing_if = "Option::is_none", default)]
    archived_at: Option<conjure_object::DateTime<conjure_object::Utc>>,
}
impl ModuleMetadata {
    #[inline]
    pub fn rid(&self) -> &super::super::modules::api::ModuleRid {
        &self.rid
    }
    /// This uniquely identifies the module within the org.
    /// Note that this cannot be changed after creation.
    #[inline]
    pub fn api_name(&self) -> &str {
        &*self.api_name
    }
    #[inline]
    pub fn title(&self) -> &str {
        &*self.title
    }
    #[inline]
    pub fn description(&self) -> &str {
        &*self.description
    }
    #[inline]
    pub fn created_by(&self) -> &super::super::scout::rids::api::UserRid {
        &self.created_by
    }
    #[inline]
    pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.created_at
    }
    /// The time at which the module was archived. Unset if the module is not archived.
    #[inline]
    pub fn archived_at(&self) -> Option<conjure_object::DateTime<conjure_object::Utc>> {
        self.archived_at.as_ref().map(|o| *o)
    }
}