pub struct Link {
pub span: Option<Span>,
pub url: String,
pub title: Option<String>,
pub target: Option<LinkTarget>,
pub children: Vec<Node>,
}Expand description
See Node::Link.
Fields§
§span: Option<Span>Where this node came from in the source, if known.
url: StringLink target.
title: Option<String>Link title (often shown as a tooltip).
target: Option<LinkTarget>Where the link points inside the site, if it is a
cross-reference. Renderers prefer it over url.
children: Vec<Node>Link text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
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 Link
Auto Trait Implementations§
impl Forget for Link
impl Freeze for Link
impl Move for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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