pub struct ProblemMetadata(/* private fields */);Expand description
Metadata section of a ProblemJson payload.
§Examples
use masterror::{AppError, ProblemJson};
let err = AppError::service("retry").with_field(masterror::field::u64("attempt", 1));
let problem = ProblemJson::from_ref(&err);
assert!(problem.metadata.is_some());Trait Implementations§
Source§impl Clone for ProblemMetadata
impl Clone for ProblemMetadata
Source§fn clone(&self) -> ProblemMetadata
fn clone(&self) -> ProblemMetadata
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 ProblemMetadata
impl Debug for ProblemMetadata
Auto Trait Implementations§
impl Freeze for ProblemMetadata
impl RefUnwindSafe for ProblemMetadata
impl Send for ProblemMetadata
impl Sync for ProblemMetadata
impl Unpin for ProblemMetadata
impl UnwindSafe for ProblemMetadata
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