pub enum AnnotationValue {
Text(String),
Boolean(bool),
Integer(i64),
Decimal(AnnotationDecimal),
}Variants§
Implementations§
Source§impl AnnotationValue
impl AnnotationValue
pub fn validate(&self) -> Result<(), CollaborationCodecError>
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<AnnotationValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnnotationValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnnotationValue
Source§impl PartialEq for AnnotationValue
impl PartialEq for AnnotationValue
Source§impl Serialize for AnnotationValue
impl Serialize for AnnotationValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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