pub struct NativeErrorDetails {Show 21 fields
pub message: Option<String>,
pub body: Option<String>,
pub code: Option<String>,
pub error_type: Option<String>,
pub event_type: Option<String>,
pub outcome: Option<String>,
pub parameter: Option<String>,
pub request_id: Option<String>,
pub event_id: Option<String>,
pub related_event_id: Option<String>,
pub tool_call_id: Option<String>,
pub sequence_number: Option<u64>,
pub native_status: Option<String>,
pub reported_http_status: Option<u16>,
pub rpc_code: Option<i64>,
pub execution_exit_code: Option<i64>,
pub retry_after: Option<String>,
pub url: Option<String>,
pub details: Vec<NativeDetail>,
pub truncated: bool,
pub omitted_details: usize,
}Expand description
Potentially sensitive native details, available only through explicit inspection.
use providers_kit::error::NativeErrorDetails;
let details = NativeErrorDetails { message: Some("private payload".into()), ..Default::default() };
assert!(!format!("{details:?}").contains("private payload"));All string fields are bounded when attached to KitError. Debug deliberately
hides them, including native codes and request IDs, because a service or proxy can
return arbitrary text in any of them. Raw bodies retain provider-specific fields
not covered by the portable metadata vocabulary.
Fields§
§message: Option<String>Native or Kit diagnostic prose, potentially containing caller input.
body: Option<String>Bounded native response or frame body, potentially containing secrets.
code: Option<String>Native error code; its meaning depends on the wire protocol.
error_type: Option<String>Native error type, distinct from its code.
event_type: Option<String>Native event discriminator, distinct from the inner error type.
outcome: Option<String>Native hosted execution outcome.
parameter: Option<String>Native parameter associated with the failure.
request_id: Option<String>Native request correlation ID.
event_id: Option<String>ID of the server event reporting the failure.
ID of the client event that caused the failure.
tool_call_id: Option<String>Native tool-call correlation, never a missing-resource identifier.
sequence_number: Option<u64>Native stream event sequence number, when reported.
native_status: Option<String>Native status name (for example, a Google RPC canonical status).
reported_http_status: Option<u16>HTTP status reported by a native body or embedded result, not an invented outer status.
rpc_code: Option<i64>Native RPC canonical numeric code, distinct from HTTP status.
execution_exit_code: Option<i64>Native execution exit code, distinct from HTTP and RPC codes.
retry_after: Option<String>Native Retry-After header; no automatic retry is implied.
url: Option<String>Request URL, potentially containing credentials or private resource names.
details: Vec<NativeDetail>Repeated structured native evidence; at most 256 records are retained.
truncated: boolAt least one detail was truncated or the body was known to be incomplete.
omitted_details: usizeNumber of structured native records omitted during bounded capture.
Trait Implementations§
Source§impl Clone for NativeErrorDetails
impl Clone for NativeErrorDetails
Source§impl Debug for NativeErrorDetails
impl Debug for NativeErrorDetails
Source§impl Default for NativeErrorDetails
impl Default for NativeErrorDetails
Source§impl<'de> Deserialize<'de> for NativeErrorDetailswhere
NativeErrorDetails: Default,
impl<'de> Deserialize<'de> for NativeErrorDetailswhere
NativeErrorDetails: Default,
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>,
impl Eq for NativeErrorDetails
Source§impl PartialEq for NativeErrorDetails
impl PartialEq for NativeErrorDetails
Source§impl Serialize for NativeErrorDetails
impl Serialize for NativeErrorDetails
impl StructuralPartialEq for NativeErrorDetails
Auto Trait Implementations§
impl Freeze for NativeErrorDetails
impl RefUnwindSafe for NativeErrorDetails
impl Send for NativeErrorDetails
impl Sync for NativeErrorDetails
impl Unpin for NativeErrorDetails
impl UnsafeUnpin for NativeErrorDetails
impl UnwindSafe for NativeErrorDetails
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.