Trait svc_error::ProblemDetailsReadOnly
source · pub trait ProblemDetailsReadOnly {
// Required methods
fn kind(&self) -> &str;
fn title(&self) -> &str;
fn status_code(&self) -> StatusCode;
fn detail(&self) -> Option<&str>;
fn extras(&self) -> &HashMap<String, String>;
}
Expand description
Getters for Problem Details
Required Methods§
sourcefn kind(&self) -> &str
fn kind(&self) -> &str
Return a URI reference RFC3986 that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type. When this member is not present, its value is assumed to be “about:blank”.
sourcefn title(&self) -> &str
fn title(&self) -> &str
Return a short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization
sourcefn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Return the HTTP status code generated by the origin server for this occurrence of the problem.