Struct sofa::DocumentCollectionItem [−][src]
pub struct DocumentCollectionItem { pub id: DocumentId, pub doc: Document, }
Used inside a DocumentCollection
, to wrap the document itself and
facilitate lookups by Document ID.
Fields
id: DocumentId
doc: Document
Methods
impl DocumentCollectionItem
[src]
impl DocumentCollectionItem
pub fn new(doc: Document) -> DocumentCollectionItem
[src]
pub fn new(doc: Document) -> DocumentCollectionItem
Trait Implementations
impl PartialEq for DocumentCollectionItem
[src]
impl PartialEq for DocumentCollectionItem
fn eq(&self, other: &DocumentCollectionItem) -> bool
[src]
fn eq(&self, other: &DocumentCollectionItem) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DocumentCollectionItem) -> bool
[src]
fn ne(&self, other: &DocumentCollectionItem) -> bool
This method tests for !=
.
impl Debug for DocumentCollectionItem
[src]
impl Debug for DocumentCollectionItem
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for DocumentCollectionItem
[src]
impl Clone for DocumentCollectionItem
fn clone(&self) -> DocumentCollectionItem
[src]
fn clone(&self) -> DocumentCollectionItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for DocumentCollectionItem
impl Send for DocumentCollectionItem
impl Sync for DocumentCollectionItem
impl Sync for DocumentCollectionItem