nominal-api-conjure 0.1451.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 GetAccessTokenResponse {
    #[builder(into)]
    #[serde(rename = "accessToken")]
    access_token: String,
    #[serde(rename = "expiresAtSeconds")]
    expires_at_seconds: conjure_object::SafeLong,
    #[serde(rename = "userUuid")]
    user_uuid: conjure_object::Uuid,
    #[serde(rename = "orgUuid")]
    org_uuid: conjure_object::Uuid,
    #[builder(default, into)]
    #[serde(rename = "isGuest", skip_serializing_if = "Option::is_none", default)]
    is_guest: Option<bool>,
}
impl GetAccessTokenResponse {
    #[inline]
    pub fn access_token(&self) -> &str {
        &*self.access_token
    }
    #[inline]
    pub fn expires_at_seconds(&self) -> conjure_object::SafeLong {
        self.expires_at_seconds
    }
    #[inline]
    pub fn user_uuid(&self) -> conjure_object::Uuid {
        self.user_uuid
    }
    #[inline]
    pub fn org_uuid(&self) -> conjure_object::Uuid {
        self.org_uuid
    }
    /// True if the user reaches the token's org as a guest rather than a member.
    /// Populated by all endpoints; optional for version compatibility.
    #[inline]
    pub fn is_guest(&self) -> Option<bool> {
        self.is_guest.as_ref().map(|o| *o)
    }
}