pub struct Embed {
pub reference: String,
pub view: InlineView,
pub preview: Option<Vec<Run>>,
}Expand description
How one reference reads for the person reading.
Fields§
§reference: StringThe mention mark’s value naming what it refers to.
view: InlineView§preview: Option<Vec<Run>>What the reference shows of itself where the text projects it (an embed): the start of
its own content, one level deep — a reference inside it is a Run naming what it
names, drawn as a link and never expanded again. Absent for a reference the text only
links.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Embed
impl<'de> Deserialize<'de> for Embed
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 Embed
Auto Trait Implementations§
impl Forget for Embed
impl Freeze for Embed
impl Move for Embed
impl RefUnwindSafe for Embed
impl Send for Embedwhere
RawVecInner: Send,
impl Sync for Embedwhere
RawVecInner: Sync,
impl Unpin for Embed
impl UnsafeUnpin for Embed
impl UnwindSafe for Embedwhere
RawVecInner: UnwindSafe,
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