pub enum SourceRuleAuthoringOperation {
LengthRangeInclusive {
min: RuleNumber,
max: RuleNumber,
},
MultipleOf {
divisor: RuleNumber,
},
NumericMaximumInclusive {
value: RuleNumber,
},
NumericMinimumInclusive {
value: RuleNumber,
},
NumericRangeInclusive {
min: RuleNumber,
max: RuleNumber,
},
}Expand description
SourceRuleAuthoringOperation
Closed authoring vocabulary with operation-specific named operands. Accepted schema owns runtime evaluation after fragment lowering.
Variants§
LengthRangeInclusive
Inclusive character/octet/collection length range.
Fields
min: RuleNumberInclusive minimum logical length.
max: RuleNumberInclusive maximum logical length.
MultipleOf
Exact integer or decimal multiple-of divisor.
Fields
divisor: RuleNumberNonzero exact divisor admitted against the target kind during lowering.
NumericMaximumInclusive
Inclusive numeric maximum.
Fields
value: RuleNumberExact upper-bound literal admitted against the target kind during lowering.
NumericMinimumInclusive
Inclusive numeric minimum.
Fields
value: RuleNumberExact lower-bound literal admitted against the target kind during lowering.
NumericRangeInclusive
Inclusive numeric range.
Fields
min: RuleNumberExact lower-bound literal admitted against the target kind during lowering.
max: RuleNumberExact upper-bound literal admitted against the target kind during lowering.
Trait Implementations§
Source§impl Clone for SourceRuleAuthoringOperation
impl Clone for SourceRuleAuthoringOperation
Source§fn clone(&self) -> SourceRuleAuthoringOperation
fn clone(&self) -> SourceRuleAuthoringOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more