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§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
impl Eq for AnnotationRef
Source§impl PartialEq for AnnotationRef
impl PartialEq for AnnotationRef
Source§impl Serialize for AnnotationRef
impl Serialize 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.