pub struct AdfMark {
pub mark_type: String,
pub attrs: Option<Value>,
}Expand description
An inline mark applied to a text node.
Fields§
§mark_type: StringThe mark type (e.g., “strong”, “em”, “code”, “link”, “strike”).
attrs: Option<Value>Mark-specific attributes (e.g., href for links).
Implementations§
Source§impl AdfMark
impl AdfMark
Sourcepub fn annotation(id: &str, annotation_type: &str) -> Self
pub fn annotation(id: &str, annotation_type: &str) -> Self
Creates an annotation mark (inline comment highlight).
Sourcepub fn text_color(color: &str) -> Self
pub fn text_color(color: &str) -> Self
Creates a text color mark.
Sourcepub fn background_color(color: &str) -> Self
pub fn background_color(color: &str) -> Self
Creates a background color mark.
Sourcepub fn indentation(level: u32) -> Self
pub fn indentation(level: u32) -> Self
Creates an indentation mark for block nodes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AdfMark
impl<'de> Deserialize<'de> for AdfMark
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 AdfMark
impl StructuralPartialEq for AdfMark
Auto Trait Implementations§
impl Freeze for AdfMark
impl RefUnwindSafe for AdfMark
impl Send for AdfMark
impl Sync for AdfMark
impl Unpin for AdfMark
impl UnsafeUnpin for AdfMark
impl UnwindSafe for AdfMark
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.