Enum couchdb::Since [] [src]

pub enum Since {
    SequenceNumber(u64),
    Now,
}

A “since” value specifies an update sequence number of a database.

Applications may use Since to limit which change events the CouchDB server returns to the application when retrieving database changes.

Examples

Applications may construct a Since directly from a number and convert a Since to a string.

use couchdb::Since;
let x: Since = 42.into();
assert_eq!("42", x.to_string());

Variants

SequenceNumber

A literal sequence number.

Now

The now value.

Trait Implementations

impl Display for Since

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl From<u64> for Since

fn from(seq: u64) -> Self

Derived Implementations

impl PartialEq for Since

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

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

impl Eq for Since

impl Debug for Since

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