pub enum Inline {
Text {
text: String,
},
Code {
code: String,
},
Emphasis {
content: Vec<Inline>,
},
Strong {
content: Vec<Inline>,
},
Strikethrough {
content: Vec<Inline>,
},
Link {
href: String,
content: Vec<Inline>,
},
Image {
source: ImageSource,
alt: String,
},
SoftBreak,
HardBreak,
}Variants§
Text
Code
Emphasis
Strong
Strikethrough
Link
A link whose target already passed the scheme allowlist.
Image
SoftBreak
HardBreak
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inline
impl<'de> Deserialize<'de> for Inline
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 Inline
impl StructuralPartialEq for Inline
Auto Trait Implementations§
impl Freeze for Inline
impl RefUnwindSafe for Inline
impl Send for Inline
impl Sync for Inline
impl Unpin for Inline
impl UnsafeUnpin for Inline
impl UnwindSafe for Inline
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