pub struct RetainedStoredDocument { /* private fields */ }Expand description
An immutable decoded tuple keeps its public fields charged through the last shared reader; tuple metadata remains outside the public field namespace.
Implementations§
Source§impl RetainedStoredDocument
impl RetainedStoredDocument
pub fn with_metadata( fields: RetainedDocumentFields, metadata: DocumentMetadata, ) -> Self
pub fn fields(&self) -> &Document
pub fn retained_fields(&self) -> &RetainedDocumentFields
pub fn metadata(&self) -> DocumentMetadata
pub fn into_parts(self) -> (RetainedDocumentFields, DocumentMetadata)
Sourcepub fn into_stored(self) -> StoredDocument
pub fn into_stored(self) -> StoredDocument
Produce a caller-owned mutable tuple, ending this reader’s retained ownership. Unique fields move without copying; retained siblings keep their original payload and lease.
Sourcepub fn into_budgeted(
self,
control: &StorageReadControl,
) -> StorageBackendResult<Budgeted<StoredDocument>>
pub fn into_budgeted( self, control: &StorageReadControl, ) -> StorageBackendResult<Budgeted<StoredDocument>>
Produce an owned tuple without detaching the field payload reservation. Shared inputs are copied under the same invoking allowance, and tuple metadata moves unchanged.
Trait Implementations§
Source§impl Clone for RetainedStoredDocument
impl Clone for RetainedStoredDocument
Auto Trait Implementations§
impl Freeze for RetainedStoredDocument
impl RefUnwindSafe for RetainedStoredDocument
impl Send for RetainedStoredDocument
impl Sync for RetainedStoredDocument
impl Unpin for RetainedStoredDocument
impl UnsafeUnpin for RetainedStoredDocument
impl UnwindSafe for RetainedStoredDocument
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