pub struct Problem {
pub kind: String,
pub title: String,
pub status: u16,
pub detail: String,
pub instance: Option<String>,
pub code: Option<String>,
pub errors: Vec<ValidationError>,
pub limit: Option<u64>,
pub reset_seconds: Option<u64>,
pub extensions: Map<String, Value>,
}Expand description
RFC 9457 problem details (application/problem+json).
Fields§
§kind: StringProblem type: urn:crypto-service:problem:<slug>, or about:blank.
title: StringSummary of the problem type.
status: u16HTTP status code.
detail: StringExplanation of this occurrence, written by the server for the client.
instance: Option<String>Request path, without the query string.
code: Option<String>Error code from crypto-lib, the key store or a KMS provider (for
example INVALID_HEX, KEY_NOT_FOUND).
errors: Vec<ValidationError>Each field that failed validation (validation-failed).
limit: Option<u64>Requests a tenant may make per minute (tenant quota).
reset_seconds: Option<u64>Seconds until the tenant quota resets.
extensions: Map<String, Value>Any other extension member.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Problem
impl<'de> Deserialize<'de> for Problem
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
impl StructuralPartialEq for Problem
Auto Trait Implementations§
impl Forget for Problem
impl Freeze for Problem
impl Move for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
impl UnwindSafe for Problem
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