Struct rincon_session::client::DocumentHeader
[−]
[src]
pub struct DocumentHeader { /* fields omitted */ }
Methods
impl DocumentHeader
[src]
pub fn new(
id: DocumentId,
key: DocumentKey,
revision: Revision
) -> DocumentHeader
[src]
id: DocumentId,
key: DocumentKey,
revision: Revision
) -> DocumentHeader
pub fn id(&self) -> &DocumentId
[src]
pub fn key(&self) -> &DocumentKey
[src]
pub fn revision(&self) -> &Revision
[src]
pub fn deconstruct(self) -> (DocumentId, DocumentKey, Revision)
[src]
Trait Implementations
impl Serialize for DocumentHeader
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for DocumentHeader
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<DocumentHeader, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<DocumentHeader, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Hash for DocumentHeader
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for DocumentHeader
[src]
impl PartialEq<DocumentHeader> for DocumentHeader
[src]
fn eq(&self, __arg_0: &DocumentHeader) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DocumentHeader) -> bool
[src]
This method tests for !=
.
impl<T> From<Document<T>> for DocumentHeader
[src]
fn from(document: Document<T>) -> DocumentHeader
[src]
Performs the conversion.
impl From<DocumentHeader> for DocumentSelector
[src]
fn from(document_header: DocumentHeader) -> DocumentSelector
[src]
Performs the conversion.
impl Clone for DocumentHeader
[src]
fn clone(&self) -> DocumentHeader
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more