[][src]Struct zim::DirectoryEntry

pub struct DirectoryEntry {
    pub mime_type: MimeType,
    pub namespace: char,
    pub revision: Option<u32>,
    pub url: String,
    pub title: String,
    pub target: Option<Target>,
}

Holds metadata about an article

Fields

mime_type: MimeType

MIME type number as defined in the MIME type list

namespace: char

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>

Methods

impl DirectoryEntry[src]

pub fn new(zim: &Zim, s: &[u8]) -> Result<DirectoryEntry, Error>[src]

Trait Implementations

impl Debug for DirectoryEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.