pub enum ConstraintKind {
Closed(Option<Vec<String>>),
Open(Option<Vec<String>>),
None,
}Variants§
Closed(Option<Vec<String>>)
Only defined values are allowed
Open(Option<Vec<String>>)
Defined values are allowed and any other value
None
Any value is allowed
Trait Implementations§
Source§impl Clone for ConstraintKind
impl Clone for ConstraintKind
Source§fn clone(&self) -> ConstraintKind
fn clone(&self) -> ConstraintKind
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 ConstraintKind
impl Debug for ConstraintKind
Source§impl<'de> Deserialize<'de> for ConstraintKind
impl<'de> Deserialize<'de> for ConstraintKind
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 ConstraintKind
impl Hash for ConstraintKind
Source§impl PartialEq for ConstraintKind
impl PartialEq for ConstraintKind
Source§impl Serialize for ConstraintKind
impl Serialize for ConstraintKind
impl Eq for ConstraintKind
impl StructuralPartialEq for ConstraintKind
Auto Trait Implementations§
impl Freeze for ConstraintKind
impl RefUnwindSafe for ConstraintKind
impl Send for ConstraintKind
impl Sync for ConstraintKind
impl Unpin for ConstraintKind
impl UnsafeUnpin for ConstraintKind
impl UnwindSafe for ConstraintKind
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