pub enum AnnotationTag {
Text {
text: String,
},
Symbol {
name: String,
target: Option<AnnotationSourceReference>,
},
Source {
target: AnnotationSourceReference,
},
Entity {
target: CollaborationMention,
},
Property {
key: String,
value: AnnotationValue,
},
}Variants§
Text
Symbol
Source
Fields
§
target: AnnotationSourceReferenceEntity
Fields
§
target: CollaborationMentionProperty
Implementations§
Source§impl AnnotationTag
impl AnnotationTag
pub fn validate(&self) -> Result<(), CollaborationCodecError>
Trait Implementations§
Source§impl Clone for AnnotationTag
impl Clone for AnnotationTag
Source§fn clone(&self) -> AnnotationTag
fn clone(&self) -> AnnotationTag
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 AnnotationTag
impl Debug for AnnotationTag
Source§impl<'de> Deserialize<'de> for AnnotationTag
impl<'de> Deserialize<'de> for AnnotationTag
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnnotationTag, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnnotationTag, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnnotationTag
Source§impl From<&str> for AnnotationTag
impl From<&str> for AnnotationTag
Source§fn from(text: &str) -> AnnotationTag
fn from(text: &str) -> AnnotationTag
Converts to this type from the input type.
Source§impl From<String> for AnnotationTag
impl From<String> for AnnotationTag
Source§fn from(text: String) -> AnnotationTag
fn from(text: String) -> AnnotationTag
Converts to this type from the input type.
Source§impl PartialEq for AnnotationTag
impl PartialEq for AnnotationTag
Source§impl Serialize for AnnotationTag
impl Serialize for AnnotationTag
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 AnnotationTag
Auto Trait Implementations§
impl Freeze for AnnotationTag
impl RefUnwindSafe for AnnotationTag
impl Send for AnnotationTag
impl Sync for AnnotationTag
impl Unpin for AnnotationTag
impl UnsafeUnpin for AnnotationTag
impl UnwindSafe for AnnotationTag
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