pub struct MetadataPatch {
pub version: Option<Option<String>>,
pub declared_size: Option<Option<u64>>,
pub extensions: BTreeMap<String, Option<MetadataValue>>,
}Expand description
A set of metadata changes to apply atomically.
The outer Option indicates whether the field is part of the patch; the
inner Option is the new value, where None clears the field. For
MetadataPatch::extensions, a None value removes the key.
Fields§
§version: Option<Option<String>>The new version, or Some(None) to clear it.
declared_size: Option<Option<u64>>The new declared size, or Some(None) to clear it.
extensions: BTreeMap<String, Option<MetadataValue>>Extension changes: key to new value, or None to remove the key.
Implementations§
Trait Implementations§
Source§impl Clone for MetadataPatch
impl Clone for MetadataPatch
Source§impl Debug for MetadataPatch
impl Debug for MetadataPatch
Source§impl Default for MetadataPatch
impl Default for MetadataPatch
Source§impl PartialEq for MetadataPatch
impl PartialEq for MetadataPatch
impl StructuralPartialEq for MetadataPatch
Auto Trait Implementations§
impl Freeze for MetadataPatch
impl RefUnwindSafe for MetadataPatch
impl Send for MetadataPatch
impl Sync for MetadataPatch
impl Unpin for MetadataPatch
impl UnsafeUnpin for MetadataPatch
impl UnwindSafe for MetadataPatch
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