nominal-api-conjure 0.1343.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 OrgUserLoginActivity {
    #[serde(rename = "userRid")]
    user_rid: super::UserRid,
    #[serde(rename = "orgRid")]
    org_rid: super::OrgRid,
    #[builder(default, into)]
    #[serde(rename = "lastLoginAt", skip_serializing_if = "Option::is_none", default)]
    last_login_at: Option<conjure_object::DateTime<conjure_object::Utc>>,
}
impl OrgUserLoginActivity {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(user_rid: super::UserRid, org_rid: super::OrgRid) -> Self {
        Self::builder().user_rid(user_rid).org_rid(org_rid).build()
    }
    #[inline]
    pub fn user_rid(&self) -> &super::UserRid {
        &self.user_rid
    }
    #[inline]
    pub fn org_rid(&self) -> &super::OrgRid {
        &self.org_rid
    }
    /// The most recent time this user logged into orgRid.
    /// Absent if they have never logged in.
    #[inline]
    pub fn last_login_at(
        &self,
    ) -> Option<conjure_object::DateTime<conjure_object::Utc>> {
        self.last_login_at.as_ref().map(|o| *o)
    }
}