nominal-api-conjure 0.1436.0

Conjure HTTP 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 SnapshotSummary {
    #[serde(rename = "rid")]
    rid: super::super::super::rids::api::SnapshotRid,
    #[serde(rename = "notebookRid")]
    notebook_rid: super::super::super::rids::api::NotebookRid,
    #[serde(rename = "authorRid")]
    author_rid: super::super::super::rids::api::UserRid,
    #[serde(rename = "createdAt")]
    created_at: conjure_object::DateTime<conjure_object::Utc>,
    #[builder(default, into)]
    #[serde(
        rename = "snapshotMessage",
        skip_serializing_if = "Option::is_none",
        default
    )]
    snapshot_message: Option<String>,
}
impl SnapshotSummary {
    #[inline]
    pub fn rid(&self) -> &super::super::super::rids::api::SnapshotRid {
        &self.rid
    }
    #[inline]
    pub fn notebook_rid(&self) -> &super::super::super::rids::api::NotebookRid {
        &self.notebook_rid
    }
    #[inline]
    pub fn author_rid(&self) -> &super::super::super::rids::api::UserRid {
        &self.author_rid
    }
    #[inline]
    pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.created_at
    }
    /// Describes what the save changed. Absent on snapshots written before messages were
    /// recorded, and on saves that do not supply one.
    #[inline]
    pub fn snapshot_message(&self) -> Option<&str> {
        self.snapshot_message.as_ref().map(|o| &**o)
    }
}