pub enum CanonicalPropertyKeyV0 {
Standard(CanonicalStandardPropertyNameV0),
Custom(CanonicalCustomPropertyNameV0),
}Variants§
Standard(CanonicalStandardPropertyNameV0)
Custom(CanonicalCustomPropertyNameV0)
Implementations§
Source§impl CanonicalPropertyKeyV0
impl CanonicalPropertyKeyV0
pub fn as_str(&self) -> &str
pub fn kind(&self) -> PropertyNameKindV0
pub fn as_custom(&self) -> Option<&CanonicalCustomPropertyNameV0>
pub fn as_standard(&self) -> Option<&CanonicalStandardPropertyNameV0>
Trait Implementations§
Source§impl Clone for CanonicalPropertyKeyV0
impl Clone for CanonicalPropertyKeyV0
Source§fn clone(&self) -> CanonicalPropertyKeyV0
fn clone(&self) -> CanonicalPropertyKeyV0
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 CanonicalPropertyKeyV0
impl Debug for CanonicalPropertyKeyV0
Source§impl<'de> Deserialize<'de> for CanonicalPropertyKeyV0
impl<'de> Deserialize<'de> for CanonicalPropertyKeyV0
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 CanonicalPropertyKeyV0
Source§impl Hash for CanonicalPropertyKeyV0
impl Hash for CanonicalPropertyKeyV0
Source§impl Ord for CanonicalPropertyKeyV0
impl Ord for CanonicalPropertyKeyV0
Source§fn cmp(&self, other: &CanonicalPropertyKeyV0) -> Ordering
fn cmp(&self, other: &CanonicalPropertyKeyV0) -> 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
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 CanonicalPropertyKeyV0
impl PartialEq for CanonicalPropertyKeyV0
Source§impl PartialOrd for CanonicalPropertyKeyV0
impl PartialOrd for CanonicalPropertyKeyV0
Source§impl Serialize for CanonicalPropertyKeyV0
impl Serialize for CanonicalPropertyKeyV0
impl StructuralPartialEq for CanonicalPropertyKeyV0
Auto Trait Implementations§
impl Freeze for CanonicalPropertyKeyV0
impl RefUnwindSafe for CanonicalPropertyKeyV0
impl Send for CanonicalPropertyKeyV0
impl Sync for CanonicalPropertyKeyV0
impl Unpin for CanonicalPropertyKeyV0
impl UnsafeUnpin for CanonicalPropertyKeyV0
impl UnwindSafe for CanonicalPropertyKeyV0
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.