pub enum SchemaAnnotationValue {
Presence,
Cardinality(Cardinality),
Regex(RegexPattern),
Range(CanonicalValueRange),
Values(CanonicalValueSet),
Doc(DocText),
Meta(CanonicalValue),
}Expand description
A closed, kind-safe schema annotation payload.
Variants§
Presence
A marker annotation with no payload.
Cardinality(Cardinality)
A cardinality payload.
Regex(RegexPattern)
A regex source payload.
Range(CanonicalValueRange)
An exact canonical value range.
Values(CanonicalValueSet)
A non-empty canonical value set.
Doc(DocText)
Documentation text.
Meta(CanonicalValue)
A typed metadata value.
Trait Implementations§
Source§impl Clone for SchemaAnnotationValue
impl Clone for SchemaAnnotationValue
Source§fn clone(&self) -> SchemaAnnotationValue
fn clone(&self) -> SchemaAnnotationValue
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 SchemaAnnotationValue
impl Debug for SchemaAnnotationValue
impl Eq for SchemaAnnotationValue
Source§impl PartialEq for SchemaAnnotationValue
impl PartialEq for SchemaAnnotationValue
Source§impl Serialize for SchemaAnnotationValue
impl Serialize for SchemaAnnotationValue
impl StructuralPartialEq for SchemaAnnotationValue
Auto Trait Implementations§
impl Freeze for SchemaAnnotationValue
impl RefUnwindSafe for SchemaAnnotationValue
impl Send for SchemaAnnotationValue
impl Sync for SchemaAnnotationValue
impl Unpin for SchemaAnnotationValue
impl UnsafeUnpin for SchemaAnnotationValue
impl UnwindSafe for SchemaAnnotationValue
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