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

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.