pub struct ProjectContextId(/* private fields */);Expand description
Opaque, bounded identity owned by the public protocol.
Implementations§
Source§impl ProjectContextId
impl ProjectContextId
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 ProjectContextId
impl Clone for ProjectContextId
Source§impl Debug for ProjectContextId
impl Debug for ProjectContextId
Source§impl<'de> Deserialize<'de> for ProjectContextId
impl<'de> Deserialize<'de> for ProjectContextId
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 ProjectContextId
Source§impl From<ProjectContextId> for String
impl From<ProjectContextId> for String
Source§fn from(value: ProjectContextId) -> Self
fn from(value: ProjectContextId) -> Self
Converts to this type from the input type.
Source§impl FromStr for ProjectContextId
impl FromStr for ProjectContextId
Source§impl Hash for ProjectContextId
impl Hash for ProjectContextId
Source§impl Ord for ProjectContextId
impl Ord for ProjectContextId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProjectContextId
impl PartialEq for ProjectContextId
Source§impl PartialOrd for ProjectContextId
impl PartialOrd for ProjectContextId
Source§impl Serialize for ProjectContextId
impl Serialize for ProjectContextId
impl StructuralPartialEq for ProjectContextId
Source§impl TryFrom<&str> for ProjectContextId
impl TryFrom<&str> for ProjectContextId
Auto Trait Implementations§
impl Forget for ProjectContextId
impl Freeze for ProjectContextId
impl Move for ProjectContextId
impl RefUnwindSafe for ProjectContextId
impl Send for ProjectContextId
impl Sync for ProjectContextId
impl Unpin for ProjectContextId
impl UnsafeUnpin for ProjectContextId
impl UnwindSafe for ProjectContextId
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