pub enum ResponseItem {
Url,
Mime,
Domain,
Excerpt,
}
Represents an item type that should be included in the query output.
There is one-to-one parity between this type and output::OutputItem
.
Denotes the URL of the document that matched the query, if present, should be included.
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.
Denotes that a valid IETF MIME type, as per RFC 2045, should be included.
Domain
Denotes that the domain (or hostname) of the Url
should be included.
Denotes that any number of PatternMatch
es—in other words, excerpts—should be included.
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)