[][src]Enum ieql::output::output::OutputItem

pub enum OutputItem {
    Url(Option<String>),
    Mime(Option<String>),
    Domain(Option<String>),
    Excerpt(Vec<PatternMatch>),
}

This enum represents a possible output item. OutputItems are typically user-meaningful, and are not machine readable. The items included in the output are dependent on the response configuration of the query.

Much of this information is simply copied from the metadata of the document that produced it.

Variants

Url(Option<String>)

Represents the URL of the document that matched the query, if present. There is no guarantee that this will be a valid url; if the mechanism by which documents are loaded provides a faulty or invalid URL (such as a local filepath, as the command line interface does when loading documents), this URL will be unchanged.

Mime(Option<String>)

Represents a valid IETF MIME type, as per RFC 2045.

Domain(Option<String>)

Represents the domain (or hostname) of the Url. When the URL is not present, neither will the domain be.

Excerpt(Vec<PatternMatch>)

Contains any number of PatternMatches—in other words, excerpts.

Trait Implementations

impl PartialEq<OutputItem> for OutputItem
[src]

impl Debug for OutputItem
[src]

impl Serialize for OutputItem
[src]

impl<'de> Deserialize<'de> for OutputItem
[src]

Auto Trait Implementations

impl Send for OutputItem

impl Sync for OutputItem

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]