pub enum IdentifiedBy {
Uuid(Uuid),
Name(Name),
}
Expand description
A UUID or textual name that can uniquely identify a resource. Whereas a UUID is a global identifier, name
is not
implied to be globally unique, but unique within scope implied scope: e.g. a workspace.
Variants§
Trait Implementations§
Source§impl Clone for IdentifiedBy
impl Clone for IdentifiedBy
Source§fn clone(&self) -> IdentifiedBy
fn clone(&self) -> IdentifiedBy
Returns a duplicate of the value. Read more
1.0.0 · 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 IdentifiedBy
impl Debug for IdentifiedBy
Source§impl<'de> Deserialize<'de> for IdentifiedBy
impl<'de> Deserialize<'de> for IdentifiedBy
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
Source§impl Display for IdentifiedBy
impl Display for IdentifiedBy
Source§impl From<Name> for IdentifiedBy
impl From<Name> for IdentifiedBy
Source§impl From<Uuid> for IdentifiedBy
impl From<Uuid> for IdentifiedBy
Source§impl Ord for IdentifiedBy
impl Ord for IdentifiedBy
Source§fn cmp(&self, other: &IdentifiedBy) -> Ordering
fn cmp(&self, other: &IdentifiedBy) -> Ordering
1.21.0 · 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 IdentifiedBy
impl PartialEq for IdentifiedBy
Source§impl PartialOrd for IdentifiedBy
impl PartialOrd for IdentifiedBy
Source§impl Serialize for IdentifiedBy
impl Serialize for IdentifiedBy
impl Eq for IdentifiedBy
impl StructuralPartialEq for IdentifiedBy
Auto Trait Implementations§
impl Freeze for IdentifiedBy
impl RefUnwindSafe for IdentifiedBy
impl Send for IdentifiedBy
impl Sync for IdentifiedBy
impl Unpin for IdentifiedBy
impl UnwindSafe for IdentifiedBy
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