pub struct WdfText {
pub node_type: String,
pub text: String,
pub marks: Option<Vec<WdfMark>>,
}Expand description
An inline text run. bold is the only supported mark in v0.1.
Fields§
§node_type: StringNode type string; "text" in canonical documents.
text: String§marks: Option<Vec<WdfMark>>Present only when non-empty; at most one bold mark.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WdfText
impl<'de> Deserialize<'de> for WdfText
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 StructuralPartialEq for WdfText
Auto Trait Implementations§
impl Freeze for WdfText
impl RefUnwindSafe for WdfText
impl Send for WdfText
impl Sync for WdfText
impl Unpin for WdfText
impl UnsafeUnpin for WdfText
impl UnwindSafe for WdfText
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