Struct couchdb::Database [] [src]

pub struct Database {
    pub db_name: DatabaseName,
    pub update_seq: u64,
    pub committed_update_seq: u64,
    pub instance_start_time: u64,
    pub disk_format_version: i32,
    pub doc_count: u64,
    pub doc_del_count: u64,
    pub data_size: u64,
    pub disk_size: u64,
    pub purge_seq: u64,
    pub compact_running: bool,
    // some fields omitted
}

Database meta-information, as returned from an action to GET a database.

Although the Database 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 Database 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.

Fields

db_name

The name of the database.

update_seq

The current number of updates to the database.

committed_update_seq

The number of committed updates.

instance_start_time

Timestamp of when the database was opened, expressed in microseconds since the epoch.

disk_format_version

The version of the physical format used for the data when it is stored on disk.

doc_count

Number of documents in the database.

doc_del_count

Number of deleted documents.

data_size

Actual data size, in bytes, of the database data.

disk_size

Size, in bytes, of the data as stored on the disk. Views indexes are not included in the calculation.

purge_seq

The number of purge operations on the database.

compact_running

Set to true if the database compaction routine is operating on this database.

Trait Implementations

impl Deserialize for Database

fn deserialize<D>(d: &mut D) -> Result<Self, D::Error> where D: Deserializer

Derived Implementations

impl PartialOrd for Database

fn partial_cmp(&self, __arg_0: &Database) -> Option<Ordering>

fn lt(&self, __arg_0: &Database) -> bool

fn le(&self, __arg_0: &Database) -> bool

fn gt(&self, __arg_0: &Database) -> bool

fn ge(&self, __arg_0: &Database) -> bool

impl PartialEq for Database

fn eq(&self, __arg_0: &Database) -> bool

fn ne(&self, __arg_0: &Database) -> bool

impl Ord for Database

fn cmp(&self, __arg_0: &Database) -> Ordering

impl Hash for Database

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for Database

impl Debug for Database

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Database

fn clone(&self) -> Database

fn clone_from(&mut self, source: &Self)