MetadataExt

Trait MetadataExt 

Source
pub trait MetadataExt {
    // Required methods
    fn get_str(&self, key: &str) -> Option<&str>;
    fn get_i64(&self, key: &str) -> Option<i64>;
    fn get_f64(&self, key: &str) -> Option<f64>;
    fn get_bool(&self, key: &str) -> Option<bool>;
    fn has_key(&self, key: &str) -> bool;
}
Expand description

Extension trait for Metadata operations

Required Methods§

Source

fn get_str(&self, key: &str) -> Option<&str>

Get a string field from metadata

Source

fn get_i64(&self, key: &str) -> Option<i64>

Get an integer field from metadata

Source

fn get_f64(&self, key: &str) -> Option<f64>

Get a float field from metadata

Source

fn get_bool(&self, key: &str) -> Option<bool>

Get a boolean field from metadata

Source

fn has_key(&self, key: &str) -> bool

Check if metadata has a specific key

Implementors§