pub struct Metadata { /* private fields */ }
Implementations
sourceimpl Metadata
impl Metadata
pub fn new() -> Self
pub fn with<K, V>(key: K, value: V) -> Self where
K: Into<String>,
V: Serialize,
pub fn and<K, V>(self, key: K, value: V) -> Self where
K: Into<String>,
V: Serialize,
pub fn merge(self, other: Metadata) -> Self
pub fn values(&self) -> &HashMap<String, Value>
Trait Implementations
impl StructuralPartialEq for Metadata
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more