pub struct ApiErrorInfo<D = ()> {
pub retryable: bool,
pub diagnostic: Option<D>,
}Expand description
Product-neutral error metadata with a typed product diagnostic extension. Products decide retryability, diagnostic visibility, classification and redaction.
Fields§
§retryable: boolA product decision, not an instruction to automatically retry.
diagnostic: Option<D>Omitted when absent. Use a product struct instead of unvalidated JSON for extensions.
Trait Implementations§
Source§impl<D: Clone> Clone for ApiErrorInfo<D>
impl<D: Clone> Clone for ApiErrorInfo<D>
Source§fn clone(&self) -> ApiErrorInfo<D>
fn clone(&self) -> ApiErrorInfo<D>
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<D: ToSchema> ComposeSchema for ApiErrorInfo<D>
impl<D: ToSchema> ComposeSchema for ApiErrorInfo<D>
Source§impl<D: Debug> Debug for ApiErrorInfo<D>
impl<D: Debug> Debug for ApiErrorInfo<D>
Source§impl<'de, D> Deserialize<'de> for ApiErrorInfo<D>where
D: Deserialize<'de>,
impl<'de, D> Deserialize<'de> for ApiErrorInfo<D>where
D: Deserialize<'de>,
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<D: PartialEq> PartialEq for ApiErrorInfo<D>
impl<D: PartialEq> PartialEq for ApiErrorInfo<D>
Source§impl<D> Serialize for ApiErrorInfo<D>where
D: Serialize,
impl<D> Serialize for ApiErrorInfo<D>where
D: Serialize,
Source§impl<D: ToSchema> ToSchema for ApiErrorInfo<D>
impl<D: ToSchema> ToSchema for ApiErrorInfo<D>
impl<D: Eq> Eq for ApiErrorInfo<D>
impl<D> StructuralPartialEq for ApiErrorInfo<D>
Auto Trait Implementations§
impl<D> Freeze for ApiErrorInfo<D>where
D: Freeze,
impl<D> RefUnwindSafe for ApiErrorInfo<D>where
D: RefUnwindSafe,
impl<D> Send for ApiErrorInfo<D>where
D: Send,
impl<D> Sync for ApiErrorInfo<D>where
D: Sync,
impl<D> Unpin for ApiErrorInfo<D>where
D: Unpin,
impl<D> UnsafeUnpin for ApiErrorInfo<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for ApiErrorInfo<D>where
D: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.