pub enum AddMetadataField<T: Debug + Clone> {
Keep,
Clear,
Set(T),
}Expand description
Defines how to modify a field of the component/module metadata
Variants§
Keep
Keep the existing value of the field
Clear
Remove the existing value of the field
Set(T)
Set the field to a new value
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for AddMetadataField<T>where
T: Freeze,
impl<T> RefUnwindSafe for AddMetadataField<T>where
T: RefUnwindSafe,
impl<T> Send for AddMetadataField<T>where
T: Send,
impl<T> Sync for AddMetadataField<T>where
T: Sync,
impl<T> Unpin for AddMetadataField<T>where
T: Unpin,
impl<T> UnsafeUnpin for AddMetadataField<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AddMetadataField<T>where
T: UnwindSafe,
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