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 RegisterInWorkspaceRequest {
    #[builder(default, set(item(type = conjure_object::ResourceIdentifier)))]
    #[serde(
        rename = "resourceRids",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    resource_rids: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    #[serde(rename = "workspaceRid")]
    workspace_rid: super::super::api::rids::WorkspaceRid,
}
impl RegisterInWorkspaceRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(workspace_rid: super::super::api::rids::WorkspaceRid) -> Self {
        Self::builder().workspace_rid(workspace_rid).build()
    }
    #[inline]
    pub fn resource_rids(
        &self,
    ) -> &std::collections::BTreeSet<conjure_object::ResourceIdentifier> {
        &self.resource_rids
    }
    #[inline]
    pub fn workspace_rid(&self) -> &super::super::api::rids::WorkspaceRid {
        &self.workspace_rid
    }
}