pub struct Metadata { /* private fields */ }Implementations§
Source§impl Metadata
impl Metadata
pub fn new() -> Metadata
pub fn get(&self, key: &str) -> Option<&Value>
pub fn set(&mut self, key: &str, value: Value)
pub fn len(&self) -> usize
pub fn get_f64(&self, key: &str) -> Result<&f64, FLVError>
pub fn get_bool(&self, key: &str) -> Result<&bool, FLVError>
pub fn get_string(&self, key: &str) -> Result<&String, FLVError>
pub fn get_vec(&self, key: &str) -> Result<&Vec<Value>, FLVError>
pub fn get_map( &self, key: &str, ) -> Result<&LinkedHashMap<String, Value>, FLVError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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