pub struct ProblemDetails {
pub type_url: String,
pub title: String,
pub status: u16,
pub detail: String,
pub reason: Option<String>,
pub domain: Option<String>,
pub extensions: BTreeMap<String, Value>,
}Expand description
Structured HTTP error payload using RFC 9457-style problem details.
Fields§
§type_url: StringStable type URI for the problem kind.
title: StringShort human-readable problem title.
status: u16HTTP status code.
detail: StringHuman-readable error detail message.
reason: Option<String>Optional stable machine-readable reason string.
domain: Option<String>Optional domain associated with the reason.
extensions: BTreeMap<String, Value>Additional structured problem metadata.
Implementations§
Source§impl ProblemDetails
impl ProblemDetails
Sourcepub fn to_a2a_error(&self) -> A2AError
pub fn to_a2a_error(&self) -> A2AError
Convert this HTTP error payload back into an A2AError.
Trait Implementations§
Source§impl Clone for ProblemDetails
impl Clone for ProblemDetails
Source§fn clone(&self) -> ProblemDetails
fn clone(&self) -> ProblemDetails
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProblemDetails
impl Debug for ProblemDetails
Source§impl<'de> Deserialize<'de> for ProblemDetails
impl<'de> Deserialize<'de> for ProblemDetails
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 PartialEq for ProblemDetails
impl PartialEq for ProblemDetails
Source§impl Serialize for ProblemDetails
impl Serialize for ProblemDetails
impl Eq for ProblemDetails
impl StructuralPartialEq for ProblemDetails
Auto Trait Implementations§
impl Freeze for ProblemDetails
impl RefUnwindSafe for ProblemDetails
impl Send for ProblemDetails
impl Sync for ProblemDetails
impl Unpin for ProblemDetails
impl UnsafeUnpin for ProblemDetails
impl UnwindSafe for ProblemDetails
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