nominal-api-conjure 0.1330.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Switch the authenticated session to the provided org rid.
/// The user must belong to that org. Returns a new Nominal access token scoped to the org,
/// with expiry bounded by the current token's remaining lifetime (capped at 24h).
#[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 SetUserOrgRequest {
    #[serde(rename = "orgRid")]
    org_rid: super::super::authentication::api::OrgRid,
}
impl SetUserOrgRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(org_rid: super::super::authentication::api::OrgRid) -> Self {
        Self::builder().org_rid(org_rid).build()
    }
    #[inline]
    pub fn org_rid(&self) -> &super::super::authentication::api::OrgRid {
        &self.org_rid
    }
}