pub struct ProblemDetails {
pub status: Option<u32>,
/* private fields */
}
Fields§
§status: Option<u32>
Implementations§
Source§impl ProblemDetails
impl ProblemDetails
pub fn new( p_type: ProblemType, status: Option<u32>, title: Option<String>, detail: Option<String>, limit: Option<String>, request_id: Option<String>, ) -> Self
pub fn error(&self) -> &ProblemType
pub fn status(&self) -> Option<u32>
pub fn title(&self) -> Option<&str>
pub fn detail(&self) -> Option<&str>
pub fn limit(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Trait Implementations§
Source§impl Debug for ProblemDetails
impl Debug for ProblemDetails
Source§impl<'de> Deserialize<'de> for ProblemDetails
impl<'de> Deserialize<'de> for ProblemDetails
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 Display for ProblemDetails
impl Display for ProblemDetails
Source§impl From<ProblemDetails> for Error
impl From<ProblemDetails> for Error
Source§fn from(e: ProblemDetails) -> Self
fn from(e: ProblemDetails) -> Self
Converts to this type from the input type.
Source§impl From<WebSocketError> for ProblemDetails
impl From<WebSocketError> for ProblemDetails
Source§fn from(problem: WebSocketError) -> Self
fn from(problem: WebSocketError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProblemDetails
impl RefUnwindSafe for ProblemDetails
impl Send for ProblemDetails
impl Sync for ProblemDetails
impl Unpin for ProblemDetails
impl UnwindSafe for ProblemDetails
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