Struct stencila_schema::Link [−][src]
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
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Link
impl UnwindSafe for Link
Blanket Implementations
Mutably borrows from an owned value. Read more