pub struct StatusMessage {
pub code: usize,
pub title: Option<String>,
pub titles: Option<LocalizedText>,
pub detail: Option<String>,
pub details: Option<LocalizedText>,
pub links: Option<Vec<Link>>,
pub other: Option<HashMap<String, Value>>,
}
Expand description
A message with an HTTP status code, presumably an error status code.
Fields§
§code: usize
§title: Option<String>
§titles: Option<LocalizedText>
§detail: Option<String>
§details: Option<LocalizedText>
§links: Option<Vec<Link>>
§other: Option<HashMap<String, Value>>
Trait Implementations§
Source§impl Clone for StatusMessage
impl Clone for StatusMessage
Source§fn clone(&self) -> StatusMessage
fn clone(&self) -> StatusMessage
Returns a copy 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 StatusMessage
impl Debug for StatusMessage
Source§impl Default for StatusMessage
impl Default for StatusMessage
Source§fn default() -> StatusMessage
fn default() -> StatusMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatusMessage
impl<'de> Deserialize<'de> for StatusMessage
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 StatusMessage
impl PartialEq for StatusMessage
Source§impl Serialize for StatusMessage
impl Serialize for StatusMessage
impl StructuralPartialEq for StatusMessage
Auto Trait Implementations§
impl Freeze for StatusMessage
impl RefUnwindSafe for StatusMessage
impl Send for StatusMessage
impl Sync for StatusMessage
impl Unpin for StatusMessage
impl UnwindSafe for StatusMessage
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