pub struct Annotation(pub Box<AnnotationInner>);
Expand description
Annotation Type: A text note which also contains information about who made the statement and when.
Annotation v5.0.0
Text node with attribution
A text note which also contains information about who made the statement and when.
For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time. This element may need to be included in narrative because of the potential for modifying information. Annotations SHOULD NOT be used to communicate “modifying” information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible).
Tuple Fields§
§0: Box<AnnotationInner>
Implementations§
Source§impl Annotation
impl Annotation
Sourcepub fn builder() -> AnnotationBuilder
pub fn builder() -> AnnotationBuilder
Start building an instance.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
Returns a duplicate of the value. Read more
1.0.0 · 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 Annotation
impl Debug for Annotation
Source§impl Deref for Annotation
impl Deref for Annotation
Source§type Target = AnnotationInner
type Target = AnnotationInner
The resulting type after dereferencing.
Source§impl DerefMut for Annotation
impl DerefMut for Annotation
Source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Annotation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Annotation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AnnotationInner> for Annotation
impl From<AnnotationInner> for Annotation
Source§fn from(inner: AnnotationInner) -> Annotation
fn from(inner: AnnotationInner) -> Annotation
Converts to this type from the input type.
Source§impl PartialEq for Annotation
impl PartialEq for Annotation
Source§impl Serialize for Annotation
impl Serialize for Annotation
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 Annotation
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
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