pub enum Inline {
Text(String),
Code(String),
SoftBreak,
HardBreak,
Styled {
styles: StyleSet,
content: InlineSeq,
attrs: InlineAttrs,
},
Link {
content: InlineSeq,
href: Url,
title: Option<String>,
attrs: InlineAttrs,
},
Image {
asset: AssetRef,
alt: String,
title: Option<String>,
attrs: ImageAttrs,
},
FootnoteRef(FootnoteId),
MathInline {
math: RenderPayload,
attrs: InlineAttrs,
},
SvgInline {
svg: RenderPayload,
attrs: InlineAttrs,
},
UnknownInline {
tag: String,
attrs: InlineAttrs,
content: InlineSeq,
data: ExtensionMap,
note: Option<String>,
source: Option<String>,
},
RawInline {
html: String,
origin: RawOrigin,
trust: RawTrust,
attrs: InlineAttrs,
},
}Variants§
Text(String)
Code(String)
SoftBreak
HardBreak
Styled
Link
Image
FootnoteRef(FootnoteId)
MathInline
SvgInline
UnknownInline
RawInline
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 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