pub trait MetaVec {
// Required methods
fn get_metavec(&self) -> &Vec<Meta>;
fn get_mut_metavec(&mut self) -> &mut Vec<Meta>;
// Provided methods
fn has_meta(&self, key: &str) -> bool { ... }
fn has_meta_value(&self, key: &str, value: &str) -> bool { ... }
fn get_meta(&self, key: &str) -> Option<String> { ... }
fn get_meta_f32(&self, key: &str) -> Option<f32> { ... }
fn get_meta_rennren(&self, key: &str) -> Option<RenNrenCo2> { ... }
fn set_meta(&mut self, key: &str, value: &str) { ... }
}Expand description
Trait común para gestionar metadatos
Required Methods§
Sourcefn get_metavec(&self) -> &Vec<Meta>
fn get_metavec(&self) -> &Vec<Meta>
Get vector of metadata
Sourcefn get_mut_metavec(&mut self) -> &mut Vec<Meta>
fn get_mut_metavec(&mut self) -> &mut Vec<Meta>
Get mutable vector of metadata
Provided Methods§
Sourcefn has_meta_value(&self, key: &str, value: &str) -> bool
fn has_meta_value(&self, key: &str, value: &str) -> bool
Check if key has the given value
Sourcefn get_meta_f32(&self, key: &str) -> Option<f32>
fn get_meta_f32(&self, key: &str) -> Option<f32>
Get (optional) metadata value (f32) by key as f32
Sourcefn get_meta_rennren(&self, key: &str) -> Option<RenNrenCo2>
fn get_meta_rennren(&self, key: &str) -> Option<RenNrenCo2>
Get (optional) metadata value (f32, f32) by key as RenNrenCo2 struct