pub enum AnnotationValue {
Unit,
Scalar(CanonicalValue),
Ordered(Vec<CanonicalValue>),
Unordered(BTreeSet<CanonicalValue>),
Cardinality(Cardinality),
}Expand description
A generic canonical annotation value without freezing annotation fact DTOs.
Variants§
Unit
Marker annotation with no payload.
Scalar(CanonicalValue)
One scalar payload.
Ordered(Vec<CanonicalValue>)
A semantically ordered scalar sequence.
Unordered(BTreeSet<CanonicalValue>)
A semantically unordered deterministically sorted scalar set.
Cardinality(Cardinality)
A cardinality payload.
Trait Implementations§
Source§impl Clone for AnnotationValue
impl Clone for AnnotationValue
Source§fn clone(&self) -> AnnotationValue
fn clone(&self) -> AnnotationValue
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 AnnotationValue
impl Debug for AnnotationValue
Source§impl<'de> Deserialize<'de> for AnnotationValue
impl<'de> Deserialize<'de> for AnnotationValue
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 AnnotationValue
Source§impl Ord for AnnotationValue
impl Ord for AnnotationValue
Source§fn cmp(&self, other: &AnnotationValue) -> Ordering
fn cmp(&self, other: &AnnotationValue) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AnnotationValue
impl PartialEq for AnnotationValue
Source§impl PartialOrd for AnnotationValue
impl PartialOrd for AnnotationValue
Source§impl Serialize for AnnotationValue
impl Serialize for AnnotationValue
impl StructuralPartialEq for AnnotationValue
Auto Trait Implementations§
impl Freeze for AnnotationValue
impl RefUnwindSafe for AnnotationValue
impl Send for AnnotationValue
impl Sync for AnnotationValue
impl Unpin for AnnotationValue
impl UnsafeUnpin for AnnotationValue
impl UnwindSafe for AnnotationValue
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