Struct htrpc::rfc7807::AboutBlankProblem
source · pub struct AboutBlankProblem {
pub title: String,
pub status: u16,
}
Expand description
“about:blank” problem type.
See: https://tools.ietf.org/html/rfc7807#section-4.2
Fields§
§title: String
The title of this problem.
status: u16
The status of this problem.
Implementations§
source§impl AboutBlankProblem
impl AboutBlankProblem
sourcepub fn new(status: HttpStatus) -> Self
pub fn new(status: HttpStatus) -> Self
Makes a new AboutBlankProblem
instance.
Trait Implementations§
source§impl Debug for AboutBlankProblem
impl Debug for AboutBlankProblem
source§impl<'de> Deserialize<'de> for AboutBlankProblem
impl<'de> Deserialize<'de> for AboutBlankProblem
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 From<AboutBlankProblem> for Problem
impl From<AboutBlankProblem> for Problem
source§fn from(f: AboutBlankProblem) -> Self
fn from(f: AboutBlankProblem) -> Self
Converts to this type from the input type.