pub struct ProviderErrorInfo {
pub code: Option<String>,
pub error_type: Option<String>,
pub status: Option<String>,
pub message_bytes: Option<usize>,
pub details_count: usize,
}Expand description
Safe, provider-neutral summary of a structured error response.
The provider message itself is never retained. Only its byte length is exposed, while code/type/status tokens are sanitized and length-limited.
Fields§
§code: Option<String>Machine-readable provider code, such as context_length_exceeded.
error_type: Option<String>Provider error type/category, such as invalid_request_error.
status: Option<String>Provider status token, such as INVALID_ARGUMENT.
message_bytes: Option<usize>Byte length of the provider’s human-readable message, if present.
details_count: usizeNumber of structured details entries, when the provider returns them.
Trait Implementations§
Source§impl Clone for ProviderErrorInfo
impl Clone for ProviderErrorInfo
Source§impl Debug for ProviderErrorInfo
impl Debug for ProviderErrorInfo
Source§impl Default for ProviderErrorInfo
impl Default for ProviderErrorInfo
impl Eq for ProviderErrorInfo
Source§impl PartialEq for ProviderErrorInfo
impl PartialEq for ProviderErrorInfo
impl StructuralPartialEq for ProviderErrorInfo
Auto Trait Implementations§
impl Freeze for ProviderErrorInfo
impl RefUnwindSafe for ProviderErrorInfo
impl Send for ProviderErrorInfo
impl Sync for ProviderErrorInfo
impl Unpin for ProviderErrorInfo
impl UnsafeUnpin for ProviderErrorInfo
impl UnwindSafe for ProviderErrorInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.