Struct zim::DirectoryEntry

source ·
pub struct DirectoryEntry {
    pub mime_type: MimeType,
    pub namespace: Namespace,
    pub revision: Option<u32>,
    pub url: String,
    pub title: String,
    pub target: Option<Target>,
}
Expand description

Holds metadata about an article

Fields§

§mime_type: MimeType

MIME type number as defined in the MIME type list

§namespace: Namespace

defines to which namespace this directory entry belongs

§revision: Option<u32>

identifies a revision of the contents of this directory entry, needed to identify updates or revisions in the original history

§url: String

the URL as refered in the URL pointer list

§title: String

title as refered in the Title pointer list or empty; in case it is empty, the URL is used as title

§target: Option<Target>

Implementations§

Trait Implementations§

Formats the value using the given formatter. 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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
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.