Struct couchdb::DesignDocumentName
[−]
[src]
pub struct DesignDocumentName(_);
Name of a design document.
A design document name wraps a string specifying a design document—e.g., the
design-doc
part of the HTTP request to GET
http://example.com:5984/db/_design/design-doc
. The DesignDocumentName
type is a specialization of the DocumentName
type. All design document
names are document names, but not all document names are design document
names.
Design document names may be converted to and from strings. They are never percent-encoded.
Although the DesignDocumentName
type implements the Ord
and PartialOrd
traits, it provides no guarantees how that ordering is defined and may
change the definition between any two releases of the couchdb crate. That
is, for two DesignDocumentName
values a
and b
, the expression a < b
may hold true now but not in a subsequent release. Consequently,
applications must not rely upon any particular ordering definition.
Methods
impl DesignDocumentName
fn new() -> Self
Constructs an empty design document name.