pub struct ProblemPointer {
pub code: Option<Option<String>>,
pub type: Option<Option<String>>,
pub title: Option<Option<String>>,
pub status: Option<Option<i32>>,
pub detail: Option<Option<String>>,
pub instance: Option<Option<String>>,
pub request_pointer: Option<Option<String>>,
pub response_pointer: Option<Option<String>>,
pub originator: Option<Option<String>>,
}Expand description
ProblemPointer : Problem Details for HTTP APIs (RFC 9457) defines a ‘problem detail’ as a way to carry machine-readable details of errors in a HTTP response to avoid the need to define new error response formats for HTTP APIs. See: https://tools.ietf.org/html/rfc9457
Fields§
§code: Option<Option<String>>optional in version 3.1, will be made mandatory in upcoming releases
type: Option<Option<String>>An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).
title: Option<Option<String>>A short, summary of the problem type. Written in English and readable for engineers (usually not suited for non technical stakeholders and not localized);
status: Option<Option<i32>>The HTTP status code generated by the origin server for this occurrence of the problem.
detail: Option<Option<String>>A human readable explanation specific to this occurrence of the problem.
instance: Option<Option<String>>An absolute URI that identifies the specific occurrence of the problem.
request_pointer: Option<Option<String>>A pointer to the attribute in the request for the problem.
response_pointer: Option<Option<String>>A pointer to the attribute in the response for the problem.
originator: Option<Option<String>>Identifier to the origin server for this occurrence of the problem.
Implementations§
Source§impl ProblemPointer
impl ProblemPointer
Sourcepub fn new() -> ProblemPointer
pub fn new() -> ProblemPointer
Problem Details for HTTP APIs (RFC 9457) defines a ‘problem detail’ as a way to carry machine-readable details of errors in a HTTP response to avoid the need to define new error response formats for HTTP APIs. See: https://tools.ietf.org/html/rfc9457
Trait Implementations§
Source§impl Clone for ProblemPointer
impl Clone for ProblemPointer
Source§fn clone(&self) -> ProblemPointer
fn clone(&self) -> ProblemPointer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more