pub enum MetaValue {
String(String),
Float(f64),
Int(i64),
List(Vec<MetaValue>),
KvPair {
key: String,
value: Box<MetaValue>,
},
}Expand description
A custom metadata value, mirroring the flatbuffer GenericMetaValue union
one-to-one. Used for MediaItem::extra_metadata so sender-supplied fields
map directly onto the wire representation with no lossy conversion.
Variants§
String(String)
Float(f64)
Int(i64)
List(Vec<MetaValue>)
KvPair
A single nested key/value pair (the union’s KVPair/MetadataKV arm).
Trait Implementations§
impl StructuralPartialEq for MetaValue
Auto Trait Implementations§
impl Freeze for MetaValue
impl RefUnwindSafe for MetaValue
impl Send for MetaValue
impl Sync for MetaValue
impl Unpin for MetaValue
impl UnsafeUnpin for MetaValue
impl UnwindSafe for MetaValue
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