Struct couchdb::path::ViewId [] [src]

pub struct ViewId(_);

ViewId comprises URL path segments that combine a design document name and a view name.

For example, given the view path /db/_design/doc/_view/view, the view id is doc/view.

An application can use ViewId when specifying a view filter by, for example, sending an HTTP request to GET /{db}/_changes?filter=_view&view=doc/view, where doc/view is a view id.

NOTE: As of version 1.6.1, the CouchDB server does not support view filters where either the design document name or view name contain a slash character (/). As such, ViewId makes no attempt to correctly percent-encode the names.

For more information about path-related types, see the module-level documentation.

Methods

impl ViewId
[src]

Constructs a view id from a design document name and a view name.

Converts the view id into a String.

Trait Implementations

impl Clone for ViewId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ViewId
[src]

Formats the value using the given formatter.

impl Default for ViewId
[src]

Returns the "default value" for a type. Read more

impl Eq for ViewId
[src]

impl Hash for ViewId
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for ViewId
[src]

This method returns an Ordering between self and other. Read more

impl PartialEq for ViewId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for ViewId
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl AsRef<str> for ViewId
[src]

Performs the conversion.

impl Display for ViewId
[src]

Formats the value using the given formatter. Read more