#[non_exhaustive]pub enum Value<D> {
String(String),
Number(D),
Currency(Currency),
}Expand description
Metadata value
See the metadata module for an example
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.
Trait Implementations§
impl<D> StructuralPartialEq for Value<D>
Auto Trait Implementations§
impl<D> Freeze for Value<D>where
D: Freeze,
impl<D> RefUnwindSafe for Value<D>where
D: RefUnwindSafe,
impl<D> Send for Value<D>where
D: Send,
impl<D> Sync for Value<D>where
D: Sync,
impl<D> Unpin for Value<D>where
D: Unpin,
impl<D> UnwindSafe for Value<D>where
D: 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