Struct couchdb::Revision
[−]
[src]
pub struct Revision { // some fields omitted }
Revision of a document.
A document revision comprises a number and an MD5 hash sum. In serialized
form, a revision looks something like 42-1234567890abcdef1234567890abcdef
.
Methods
impl Revision
fn parse(s: &str) -> Result<Self, Error>
Constructs a new Revision
from the given string.
The string must be of a form like 42-1234567890abcdef1234567890abcdef
.
fn update_number(&self) -> u64
Returns the update number part of the revision.
The update number is the 999
part of the revision
999-1234567890abcdef1234567890abcdef
.