Struct mwtitle::Interwiki[][src]

pub struct Interwiki {
    pub prefix: String,
    pub local_interwiki: bool,
}
Expand description

Represents an interwiki object in the interwikimap field of a SiteInfo.

Contains only the fields required to generate two InterwikiSets that can be used by a TitleCodec to parse the interwikis in a Title. Supports formatversion=1 where the localinterwiki field is "" for local interwikis, and formatversion=2 where it is true.

Fields

prefix: Stringlocal_interwiki: bool

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

Deserialize this value from the given Serde deserializer. 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)

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.