Struct lightspeed_core::error::WebErrorDetails
source · pub struct WebErrorDetails {
pub code: u16,
pub message: Option<String>,
pub details: HashMap<String, Vec<ErrorDetail>>,
}
Fields§
§code: u16
§message: Option<String>
§details: HashMap<String, Vec<ErrorDetail>>
Implementations§
source§impl WebErrorDetails
impl WebErrorDetails
pub fn from_message(code: u16, message: Option<String>) -> Self
pub fn from_error_details(code: u16, error_details: RootErrorDetails) -> Self
Trait Implementations§
source§impl Debug for WebErrorDetails
impl Debug for WebErrorDetails
source§impl<'de> Deserialize<'de> for WebErrorDetails
impl<'de> Deserialize<'de> for WebErrorDetails
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
Auto Trait Implementations§
impl Freeze for WebErrorDetails
impl RefUnwindSafe for WebErrorDetails
impl Send for WebErrorDetails
impl Sync for WebErrorDetails
impl Unpin for WebErrorDetails
impl UnwindSafe for WebErrorDetails
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