pub enum SourceRuleOperation {
LengthRangeInclusive {
min: u64,
max: u64,
},
MultipleOf {
divisor: ScalarLiteral,
},
NumericMaximumInclusive {
value: ScalarLiteral,
},
NumericMinimumInclusive {
value: ScalarLiteral,
},
NumericRangeInclusive {
min: ScalarLiteral,
max: ScalarLiteral,
},
}Expand description
One closed durable operation applied to every selected nominal value.
Variants§
LengthRangeInclusive
Inclusive Unicode-scalar, octet, or collection-cardinality range.
MultipleOf
Exact nonzero integer or fixed-scale decimal divisor.
Fields
§
divisor: ScalarLiteralExact divisor admitted against the target kind.
NumericMaximumInclusive
Inclusive upper bound for one exact numeric kind.
Fields
§
value: ScalarLiteralExact upper-bound literal.
NumericMinimumInclusive
Inclusive lower bound for one exact numeric kind.
Fields
§
value: ScalarLiteralExact lower-bound literal.
NumericRangeInclusive
Inclusive lower and upper bounds for one exact numeric kind.
Trait Implementations§
Source§impl CandidType for SourceRuleOperation
impl CandidType for SourceRuleOperation
Source§impl Clone for SourceRuleOperation
impl Clone for SourceRuleOperation
Source§fn clone(&self) -> SourceRuleOperation
fn clone(&self) -> SourceRuleOperation
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 SourceRuleOperation
impl Debug for SourceRuleOperation
Source§impl<'de> Deserialize<'de> for SourceRuleOperation
impl<'de> Deserialize<'de> for SourceRuleOperation
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 SourceRuleOperation
Source§impl PartialEq for SourceRuleOperation
impl PartialEq for SourceRuleOperation
Source§impl Serialize for SourceRuleOperation
impl Serialize for SourceRuleOperation
impl StructuralPartialEq for SourceRuleOperation
Auto Trait Implementations§
impl Freeze for SourceRuleOperation
impl RefUnwindSafe for SourceRuleOperation
impl Send for SourceRuleOperation
impl Sync for SourceRuleOperation
impl Unpin for SourceRuleOperation
impl UnsafeUnpin for SourceRuleOperation
impl UnwindSafe for SourceRuleOperation
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