nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
/// Unique identifier for an Workspace. These are unique within an organization.
/// The workspace ID must be lower case alphanumeric characters, optionally separated by hyphens.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Deserialize,
    conjure_object::serde::Serialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    Default
)]
#[serde(crate = "conjure_object::serde", transparent)]
pub struct WorkspaceId(pub String);
impl std::fmt::Display for WorkspaceId {
    fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        std::fmt::Display::fmt(&self.0, fmt)
    }
}
impl conjure_object::Plain for WorkspaceId {
    fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        conjure_object::Plain::fmt(&self.0, fmt)
    }
}
impl conjure_object::FromPlain for WorkspaceId {
    type Err = <String as conjure_object::FromPlain>::Err;
    #[inline]
    fn from_plain(s: &str) -> Result<WorkspaceId, Self::Err> {
        conjure_object::FromPlain::from_plain(s).map(WorkspaceId)
    }
}
impl std::convert::From<String> for WorkspaceId {
    #[inline]
    fn from(v: String) -> Self {
        WorkspaceId(std::convert::From::from(v))
    }
}
impl std::ops::Deref for WorkspaceId {
    type Target = String;
    #[inline]
    fn deref(&self) -> &String {
        &self.0
    }
}
impl std::ops::DerefMut for WorkspaceId {
    #[inline]
    fn deref_mut(&mut self) -> &mut String {
        &mut self.0
    }
}
impl std::convert::AsRef<String> for WorkspaceId {
    #[inline]
    fn as_ref(&self) -> &String {
        &self.0
    }
}