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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.