pub struct WorkspaceId(/* private fields */);Expand description
Opaque, bounded identity owned by the public protocol.
Implementations§
Source§impl WorkspaceId
impl WorkspaceId
Sourcepub fn new(value: impl Into<String>) -> Result<Self, ValidationError>
pub fn new(value: impl Into<String>) -> Result<Self, ValidationError>
Construct an identifier after applying the protocol wire bounds.
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Consume the identifier and return its wire representation.
Trait Implementations§
Source§impl Clone for WorkspaceId
impl Clone for WorkspaceId
Source§fn clone(&self) -> WorkspaceId
fn clone(&self) -> WorkspaceId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkspaceId
impl Debug for WorkspaceId
Source§impl<'de> Deserialize<'de> for WorkspaceId
impl<'de> Deserialize<'de> for WorkspaceId
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WorkspaceId
Source§impl From<WorkspaceId> for String
impl From<WorkspaceId> for String
Source§fn from(value: WorkspaceId) -> Self
fn from(value: WorkspaceId) -> Self
Converts to this type from the input type.
Source§impl FromStr for WorkspaceId
impl FromStr for WorkspaceId
Source§impl Hash for WorkspaceId
impl Hash for WorkspaceId
Source§impl Ord for WorkspaceId
impl Ord for WorkspaceId
Source§fn cmp(&self, other: &WorkspaceId) -> Ordering
fn cmp(&self, other: &WorkspaceId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WorkspaceId
impl PartialEq for WorkspaceId
Source§impl PartialOrd for WorkspaceId
impl PartialOrd for WorkspaceId
Source§impl Serialize for WorkspaceId
impl Serialize for WorkspaceId
impl StructuralPartialEq for WorkspaceId
Source§impl TryFrom<&str> for WorkspaceId
impl TryFrom<&str> for WorkspaceId
Auto Trait Implementations§
impl Freeze for WorkspaceId
impl RefUnwindSafe for WorkspaceId
impl Send for WorkspaceId
impl Sync for WorkspaceId
impl Unpin for WorkspaceId
impl UnsafeUnpin for WorkspaceId
impl UnwindSafe for WorkspaceId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more