pub struct AnnotationRef {
pub id: String,
pub text_offset: Option<usize>,
}Expand description
Annotation marker embedded in Markdown and resolved to sidecar metadata.
Fields§
§id: StringReferenced annotation id.
text_offset: Option<usize>UTF-8 byte offset in the cleaned block text, when the marker is inline.
Trait Implementations§
Source§impl Clone for AnnotationRef
impl Clone for AnnotationRef
Source§fn clone(&self) -> AnnotationRef
fn clone(&self) -> AnnotationRef
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 AnnotationRef
impl Debug for AnnotationRef
Source§impl<'de> Deserialize<'de> for AnnotationRef
impl<'de> Deserialize<'de> for AnnotationRef
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
Source§impl PartialEq for AnnotationRef
impl PartialEq for AnnotationRef
Source§fn eq(&self, other: &AnnotationRef) -> bool
fn eq(&self, other: &AnnotationRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotationRef
impl Serialize for AnnotationRef
impl Eq for AnnotationRef
impl StructuralPartialEq for AnnotationRef
Auto Trait Implementations§
impl Freeze for AnnotationRef
impl RefUnwindSafe for AnnotationRef
impl Send for AnnotationRef
impl Sync for AnnotationRef
impl Unpin for AnnotationRef
impl UnsafeUnpin for AnnotationRef
impl UnwindSafe for AnnotationRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.