pub struct MetadataEdit { /* private fields */ }Expand description
One structured document metadata mutation.
Implementations§
Source§impl MetadataEdit
impl MetadataEdit
Sourcepub const fn new(
version: DocumentVersion,
column: ColumnId,
value: MetadataValue,
) -> Self
pub const fn new( version: DocumentVersion, column: ColumnId, value: MetadataValue, ) -> Self
Constructs one metadata edit for a specific document revision.
Sourcepub const fn version(&self) -> DocumentVersion
pub const fn version(&self) -> DocumentVersion
Returns the document/revision key to edit.
Sourcepub const fn value(&self) -> &MetadataValue
pub const fn value(&self) -> &MetadataValue
Returns the owned typed replacement value.
Trait Implementations§
Source§impl Clone for MetadataEdit
impl Clone for MetadataEdit
Source§impl Debug for MetadataEdit
impl Debug for MetadataEdit
Source§impl PartialEq for MetadataEdit
impl PartialEq for MetadataEdit
impl StructuralPartialEq for MetadataEdit
Auto Trait Implementations§
impl Freeze for MetadataEdit
impl RefUnwindSafe for MetadataEdit
impl Send for MetadataEdit
impl Sync for MetadataEdit
impl Unpin for MetadataEdit
impl UnsafeUnpin for MetadataEdit
impl UnwindSafe for MetadataEdit
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