#[non_exhaustive]pub enum MetadataUpdate {
Keep,
Remove,
Set(Vec<u8>),
}Expand description
What to do with one kind of metadata when writing an asset.
By default, all metadata is kept unchanged. A handler reads it from
Updates::xmp and Updates::c2pa.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Keep
Keep existing metadata (default)
Remove
Remove existing metadata
Set(Vec<u8>)
Replace or add metadata
Trait Implementations§
Source§impl Clone for MetadataUpdate
impl Clone for MetadataUpdate
Source§impl Debug for MetadataUpdate
impl Debug for MetadataUpdate
Auto Trait Implementations§
impl Forget for MetadataUpdate
impl Freeze for MetadataUpdate
impl Move for MetadataUpdate
impl RefUnwindSafe for MetadataUpdate
impl Send for MetadataUpdate
impl Sync for MetadataUpdate
impl Unpin for MetadataUpdate
impl UnsafeUnpin for MetadataUpdate
impl UnwindSafe for MetadataUpdate
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