pub struct ExternalLink<'a> {
    pub kind: Cow<'a, str>,
    pub type_: ExternalLinkType,
    pub value: Cow<'a, str>,
}
Expand description

External link.

Fields§

§kind: Cow<'a, str>

The kind of page the link refers to.

Parsed from the name of the parameter that has as its value the title of the page the link refers to. Different kinds are allowed for each wiki. For example links to Wikipedia allow the kinds kategorie (category), portál (portal), rozcestník (disambiguation page) and článek (article).

§type_: ExternalLinkType

The wiki the link refers to.

§value: Cow<'a, str>

The title of the page the link refers to.

Trait Implementations§

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.