pub struct MetadataEntry {
pub strings: HashMap<String, String>,
pub integers: HashMap<String, i64>,
pub floats: HashMap<String, f64>,
pub bools: HashMap<String, bool>,
}Expand description
A metadata entry containing key-value pairs organized by type
Fields§
§strings: HashMap<String, String>String metadata values
integers: HashMap<String, i64>Integer metadata values
floats: HashMap<String, f64>Float metadata values
bools: HashMap<String, bool>Boolean metadata values
Implementations§
Source§impl MetadataEntry
impl MetadataEntry
Sourcepub fn insert(&mut self, key: impl Into<String>, value: MetadataValue)
pub fn insert(&mut self, key: impl Into<String>, value: MetadataValue)
Insert a metadata value
Sourcepub fn get(&self, key: &str) -> Option<MetadataValue>
pub fn get(&self, key: &str) -> Option<MetadataValue>
Get a metadata value by key
Sourcepub fn contains_key(&self, key: &str) -> bool
pub fn contains_key(&self, key: &str) -> bool
Check if a key exists
Trait Implementations§
Source§impl Clone for MetadataEntry
impl Clone for MetadataEntry
Source§impl Debug for MetadataEntry
impl Debug for MetadataEntry
Auto Trait Implementations§
impl Freeze for MetadataEntry
impl RefUnwindSafe for MetadataEntry
impl Send for MetadataEntry
impl Sync for MetadataEntry
impl Unpin for MetadataEntry
impl UnsafeUnpin for MetadataEntry
impl UnwindSafe for MetadataEntry
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