pub enum AttributeConstraint {
None,
BoolEquals(bool),
IntegerRange {
minimum: i64,
maximum: i64,
},
UnsignedRange {
minimum: u64,
maximum: u64,
},
RationalRange {
minimum: CanonicalRational,
maximum: CanonicalRational,
},
TextChoices {
values: BTreeSet<String>,
},
IntegerListLength {
minimum: u32,
maximum: u32,
},
}Variants§
Trait Implementations§
Source§impl Clone for AttributeConstraint
impl Clone for AttributeConstraint
Source§fn clone(&self) -> AttributeConstraint
fn clone(&self) -> AttributeConstraint
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 AttributeConstraint
impl Debug for AttributeConstraint
Source§impl<'de> Deserialize<'de> for AttributeConstraint
impl<'de> Deserialize<'de> for AttributeConstraint
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 AttributeConstraint
Source§impl PartialEq for AttributeConstraint
impl PartialEq for AttributeConstraint
Source§impl Serialize for AttributeConstraint
impl Serialize for AttributeConstraint
impl StructuralPartialEq for AttributeConstraint
Auto Trait Implementations§
impl Freeze for AttributeConstraint
impl RefUnwindSafe for AttributeConstraint
impl Send for AttributeConstraint
impl Sync for AttributeConstraint
impl Unpin for AttributeConstraint
impl UnsafeUnpin for AttributeConstraint
impl UnwindSafe for AttributeConstraint
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