pub struct StoredDocument { /* private fields */ }Expand description
One persisted tuple, split into its public fields and storage-owned metadata.
Implementations§
Source§impl StoredDocument
impl StoredDocument
pub fn new(fields: Document) -> Self
pub fn with_metadata(fields: Document, metadata: DocumentMetadata) -> Self
pub fn fields(&self) -> &Document
pub fn fields_mut(&mut self) -> &mut Document
pub fn metadata(&self) -> DocumentMetadata
pub fn into_fields(self) -> Document
pub fn into_parts(self) -> (Document, DocumentMetadata)
Trait Implementations§
Source§impl Clone for StoredDocument
impl Clone for StoredDocument
Source§fn clone(&self) -> StoredDocument
fn clone(&self) -> StoredDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoredDocument
impl Debug for StoredDocument
Source§impl Default for StoredDocument
impl Default for StoredDocument
Source§fn default() -> StoredDocument
fn default() -> StoredDocument
Returns the “default value” for a type. Read more
Source§impl PartialEq for StoredDocument
impl PartialEq for StoredDocument
impl StructuralPartialEq for StoredDocument
Auto Trait Implementations§
impl Freeze for StoredDocument
impl RefUnwindSafe for StoredDocument
impl Send for StoredDocument
impl Sync for StoredDocument
impl Unpin for StoredDocument
impl UnsafeUnpin for StoredDocument
impl UnwindSafe for StoredDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more