Struct couchdb::path::DesignDocumentId
[−]
[src]
pub struct DesignDocumentId(_);
DesignDocumentId
comprises URL path segments that, together, identify a
design document.
For example, given the document path /db/_design/doc
, the design document
id is _design/doc
.
DesignDocumentId
is a special form of
DocumentId
. All design document ids are document
ids, but not all document ids are design document ids.
For more information about path-related types, see the module-level documentation.
Methods
impl DesignDocumentId
[src]
fn parse(s: &str) -> Result<Self, Error>
Tries to construct a design document id from a string.
fn into_string(self) -> String
Converts the design document id into a String
.
fn into_document_id(self) -> DocumentId
Converts the design document id into a general document id.
fn into_design_document_name(self) -> DesignDocumentName
Converts the design document id into a design document name.
Trait Implementations
impl Clone for DesignDocumentId
[src]
fn clone(&self) -> DesignDocumentId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for DesignDocumentId
[src]
impl Default for DesignDocumentId
[src]
fn default() -> DesignDocumentId
Returns the "default value" for a type. Read more
impl Eq for DesignDocumentId
[src]
impl Hash for DesignDocumentId
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for DesignDocumentId
[src]
fn cmp(&self, __arg_0: &DesignDocumentId) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for DesignDocumentId
[src]
fn eq(&self, __arg_0: &DesignDocumentId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DesignDocumentId) -> bool
This method tests for !=
.
impl PartialOrd for DesignDocumentId
[src]
fn partial_cmp(&self, __arg_0: &DesignDocumentId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &DesignDocumentId) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &DesignDocumentId) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &DesignDocumentId) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &DesignDocumentId) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl AsRef<str> for DesignDocumentId
[src]
impl Display for DesignDocumentId
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl FromStr for DesignDocumentId
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl From<DesignDocumentName> for DesignDocumentId
[src]
fn from(ddoc_name: DesignDocumentName) -> Self
Performs the conversion.
impl<'a> Deserialize<'a> for DesignDocumentId
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more