Struct did_toolkit::document::AlsoKnownAsEither
source · pub struct AlsoKnownAsEither(pub Either<DID, Url>);Tuple Fields§
§0: Either<DID, Url>Trait Implementations§
source§impl Clone for AlsoKnownAsEither
impl Clone for AlsoKnownAsEither
source§fn clone(&self) -> AlsoKnownAsEither
fn clone(&self) -> AlsoKnownAsEither
Returns a copy 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 AlsoKnownAsEither
impl Debug for AlsoKnownAsEither
source§impl<'de> Deserialize<'de> for AlsoKnownAsEither
impl<'de> Deserialize<'de> for AlsoKnownAsEither
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 Hash for AlsoKnownAsEither
impl Hash for AlsoKnownAsEither
source§impl Ord for AlsoKnownAsEither
impl Ord for AlsoKnownAsEither
source§fn cmp(&self, other: &AlsoKnownAsEither) -> Ordering
fn cmp(&self, other: &AlsoKnownAsEither) -> 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<AlsoKnownAsEither> for AlsoKnownAsEither
impl PartialEq<AlsoKnownAsEither> for AlsoKnownAsEither
source§fn eq(&self, other: &AlsoKnownAsEither) -> bool
fn eq(&self, other: &AlsoKnownAsEither) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<AlsoKnownAsEither> for AlsoKnownAsEither
impl PartialOrd<AlsoKnownAsEither> for AlsoKnownAsEither
source§fn partial_cmp(&self, other: &AlsoKnownAsEither) -> Option<Ordering>
fn partial_cmp(&self, other: &AlsoKnownAsEither) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for AlsoKnownAsEither
impl Serialize for AlsoKnownAsEither
impl Eq for AlsoKnownAsEither
impl StructuralEq for AlsoKnownAsEither
impl StructuralPartialEq for AlsoKnownAsEither
Auto Trait Implementations§
impl RefUnwindSafe for AlsoKnownAsEither
impl Send for AlsoKnownAsEither
impl Sync for AlsoKnownAsEither
impl Unpin for AlsoKnownAsEither
impl UnwindSafe for AlsoKnownAsEither
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.