pub struct StatusDetails {
pub error: Option<String>,
pub reason: Option<String>,
pub description: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Details for a status response.
This struct captures common status detail fields while allowing additional
custom fields through the extra field.
Fields§
§error: Option<String>Error message if the status indicates an error
reason: Option<String>Reason for the current status
description: Option<String>Human-readable description of the status
extra: HashMap<String, Value>Any additional detail fields
Trait Implementations§
Source§impl Clone for StatusDetails
impl Clone for StatusDetails
Source§fn clone(&self) -> StatusDetails
fn clone(&self) -> StatusDetails
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 StatusDetails
impl Debug for StatusDetails
Source§impl<'de> Deserialize<'de> for StatusDetails
impl<'de> Deserialize<'de> for StatusDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StatusDetails
impl PartialEq for StatusDetails
Source§impl Serialize for StatusDetails
impl Serialize for StatusDetails
impl StructuralPartialEq for StatusDetails
Auto Trait Implementations§
impl Freeze for StatusDetails
impl RefUnwindSafe for StatusDetails
impl Send for StatusDetails
impl Sync for StatusDetails
impl Unpin for StatusDetails
impl UnsafeUnpin for StatusDetails
impl UnwindSafe for StatusDetails
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