pub struct ErrorMetadata { /* private fields */ }Implementations§
Source§impl ErrorMetadata
impl ErrorMetadata
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn as_map(&self) -> &BTreeMap<String, MetadataValue>
pub fn insert<K, V>(&mut self, key: K, value: V)
pub fn get(&self, key: &str) -> Option<&MetadataValue>
pub fn get_str(&self, key: &str) -> Option<&str>
pub fn iter(&self) -> impl Iterator<Item = (&String, &MetadataValue)>
Trait Implementations§
Source§impl Clone for ErrorMetadata
impl Clone for ErrorMetadata
Source§fn clone(&self) -> ErrorMetadata
fn clone(&self) -> ErrorMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorMetadata
impl Debug for ErrorMetadata
Source§impl Default for ErrorMetadata
impl Default for ErrorMetadata
Source§fn default() -> ErrorMetadata
fn default() -> ErrorMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for ErrorMetadata
impl PartialEq for ErrorMetadata
impl Eq for ErrorMetadata
impl StructuralPartialEq for ErrorMetadata
Auto Trait Implementations§
impl Freeze for ErrorMetadata
impl RefUnwindSafe for ErrorMetadata
impl Send for ErrorMetadata
impl Sync for ErrorMetadata
impl Unpin for ErrorMetadata
impl UnsafeUnpin for ErrorMetadata
impl UnwindSafe for ErrorMetadata
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