Enum couchdb::attachment::Digest
[−]
[src]
pub enum Digest { // some variants omitted }
Digest
is a hashed sum of an attachment's content.
Methods
impl Digest
[src]
fn bytes(&self) -> &[u8]
Borrows the encoded digest value.
For example, with an MD5 digest, the value is the 16-byte MD5 sum of the attachment's content.
fn is_md5(&self) -> bool
Returns whether the digest is MD5-encoded.
Trait Implementations
impl Clone for Digest
[src]
fn clone(&self) -> Digest
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 Digest
[src]
impl Eq for Digest
[src]
impl PartialEq for Digest
[src]
fn eq(&self, __arg_0: &Digest) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Digest) -> bool
This method tests for !=
.
impl<'a> Deserialize<'a> for Digest
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more