pub enum ConstraintTest {
Equals,
MemberOf,
PathPrefix(u8),
}Variants§
Equals
MemberOf
The reference is a path whose elements are the allowed strings.
PathPrefix(u8)
Both values are paths and their first level elements, 1 to 16,
are equal.
Trait Implementations§
Source§impl Clone for ConstraintTest
impl Clone for ConstraintTest
impl Copy for ConstraintTest
Source§impl Debug for ConstraintTest
impl Debug for ConstraintTest
Source§impl<'de> Deserialize<'de> for ConstraintTest
impl<'de> Deserialize<'de> for ConstraintTest
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 ConstraintTest
Source§impl PartialEq for ConstraintTest
impl PartialEq for ConstraintTest
Source§impl Serialize for ConstraintTest
impl Serialize for ConstraintTest
impl StructuralPartialEq for ConstraintTest
Auto Trait Implementations§
impl Freeze for ConstraintTest
impl RefUnwindSafe for ConstraintTest
impl Send for ConstraintTest
impl Sync for ConstraintTest
impl Unpin for ConstraintTest
impl UnsafeUnpin for ConstraintTest
impl UnwindSafe for ConstraintTest
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