Struct couchdb::path::DatabaseName
[−]
[src]
pub struct DatabaseName(_);
DatabaseName
is a single URL path segment that specifies the name of a
database.
For example, given the document path /db/_design/doc
, the database name is
db
.
For more information about path-related types, see the module-level documentation.
Methods
impl DatabaseName
[src]
fn new<T: Into<String>>(s: T) -> Self
Constructs a new database name.
fn into_string(self) -> String
Converts the database name into a string.
impl DatabaseName
[src]
fn with_document_id<T: Into<DocumentId>>(self, doc_id: T) -> DocumentPath
Joins the database name with a document id to construct a document path.
fn with_design_document_id<T: Into<DesignDocumentId>>(
self,
ddoc_id: T
) -> DesignDocumentPath
self,
ddoc_id: T
) -> DesignDocumentPath
Joins the database name with a design document id to construct a design document path.
fn into_database_path(self) -> DatabasePath
Converts the database name into a database path.
Trait Implementations
impl Clone for DatabaseName
[src]
fn clone(&self) -> DatabaseName
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 DatabaseName
[src]
impl Default for DatabaseName
[src]
fn default() -> DatabaseName
Returns the "default value" for a type. Read more
impl Eq for DatabaseName
[src]
impl Hash for DatabaseName
[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 DatabaseName
[src]
fn cmp(&self, __arg_0: &DatabaseName) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for DatabaseName
[src]
fn eq(&self, __arg_0: &DatabaseName) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DatabaseName) -> bool
This method tests for !=
.
impl PartialOrd for DatabaseName
[src]
fn partial_cmp(&self, __arg_0: &DatabaseName) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &DatabaseName) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &DatabaseName) -> 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: &DatabaseName) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &DatabaseName) -> 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 DatabaseName
[src]
impl Display for DatabaseName
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more