pub enum StrengthSpec {
Weak,
Medium,
Strong,
Required,
}Expand description
Strength as stored in documents.
Variants§
Weak
Weak preference.
Medium
Medium preference.
Strong
Strong preference.
Required
Hard rule (default).
Trait Implementations§
Source§impl Clone for StrengthSpec
impl Clone for StrengthSpec
Source§fn clone(&self) -> StrengthSpec
fn clone(&self) -> StrengthSpec
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 moreimpl Copy for StrengthSpec
Source§impl Debug for StrengthSpec
impl Debug for StrengthSpec
Source§impl Default for StrengthSpec
impl Default for StrengthSpec
Source§fn default() -> StrengthSpec
fn default() -> StrengthSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StrengthSpec
impl<'de> Deserialize<'de> for StrengthSpec
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 StrengthSpec
Source§impl Hash for StrengthSpec
impl Hash for StrengthSpec
Source§impl Ord for StrengthSpec
impl Ord for StrengthSpec
Source§fn cmp(&self, other: &StrengthSpec) -> Ordering
fn cmp(&self, other: &StrengthSpec) -> 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 StrengthSpec
impl PartialEq for StrengthSpec
Source§fn eq(&self, other: &StrengthSpec) -> bool
fn eq(&self, other: &StrengthSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StrengthSpec
impl PartialOrd for StrengthSpec
Source§impl Serialize for StrengthSpec
impl Serialize for StrengthSpec
impl StructuralPartialEq for StrengthSpec
Auto Trait Implementations§
impl Freeze for StrengthSpec
impl RefUnwindSafe for StrengthSpec
impl Send for StrengthSpec
impl Sync for StrengthSpec
impl Unpin for StrengthSpec
impl UnsafeUnpin for StrengthSpec
impl UnwindSafe for StrengthSpec
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