Struct couchdb::Database
[−]
[src]
pub struct Database { pub committed_update_seq: u64, pub compact_running: bool, pub db_name: DatabaseName, pub disk_format_version: i32, pub data_size: u64, pub disk_size: u64, pub doc_count: u64, pub doc_del_count: u64, pub instance_start_time: u64, pub purge_seq: u64, pub update_seq: u64, // some fields omitted }
Database
contains the content of a database resource.
Summary
Database
has public members instead of accessor methods because there are no invariants restricting the data.Database
implementsDeserialize
.
Remarks
An application may obtain a database resource by sending an HTTP request to
GET /{db}
.
Compatibility
Database
contains a dummy private member in order to prevent applications
from directly constructing a Database
instance. This allows new fields to
be added to Database
in future releases without it being a breaking
change.
Fields
committed_update_seq: u64
compact_running: bool
db_name: DatabaseName
disk_format_version: i32
data_size: u64
disk_size: u64
doc_count: u64
doc_del_count: u64
instance_start_time: u64
purge_seq: u64
update_seq: u64
Trait Implementations
impl Clone for Database
[src]
fn clone(&self) -> Database
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 Database
[src]
impl Default for Database
[src]
impl Eq for Database
[src]
impl Hash for Database
[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