Struct htrpc::rfc7807::TrackableProblem
[−]
[src]
pub struct TrackableProblem { pub title: String, pub status: u16, pub detail: Option<String>, pub instance: Option<Url>, pub history: Option<Vec<String>>, }
A problem type which represents trackable errors.
Fields
title: String
The title of this problem.
status: u16
The status of this problem.
detail: Option<String>
The detail information of this problem.
instance: Option<Url>
The instance URI of this problem.
history: Option<Vec<String>>
The tracking history of this problem (this type specific field).
Methods
impl TrackableProblem
[src]
fn new<E>(status: HttpStatus, error: E) -> Self where
E: Error + Trackable,
E::Event: Display,
[src]
E: Error + Trackable,
E::Event: Display,
Makes a new TrackableProblem
instance.