pub struct Link {
pub type_: Link_,
pub content: Vec<InlineContent>,
pub target: String,
pub export_from: Option<Box<String>>,
pub id: Option<Box<String>>,
pub import_to: Option<Box<String>>,
pub relation: Option<Box<String>>,
pub title: Option<Box<String>>,
}
Expand description
A hyperlink to other pages, sections within the same document, resources, or any URL.
Fields§
§type_: Link_
The name of this type
content: Vec<InlineContent>
The textual content of the link.
target: String
The target of the link.
export_from: Option<Box<String>>
A compilation directive giving the name of the variable to export to the link target.
id: Option<Box<String>>
The identifier for this item.
import_to: Option<Box<String>>
A compilation directive giving the name of the variable to import the link target as.
relation: Option<Box<String>>
The relation between the target and the current thing.
title: Option<Box<String>>
A title for the link.
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
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin 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