pub enum NativeDetail {
Reason {
domain: String,
reason: String,
},
Resource {
resource_type: Option<String>,
name: String,
owner: Option<String>,
description: Option<String>,
},
FieldViolation {
field: String,
reason: Option<String>,
description: Option<String>,
},
RetryDelay {
seconds: u64,
nanos: u32,
},
QuotaViolation {
subject: Option<String>,
description: Option<String>,
},
PreconditionViolation {
kind: Option<String>,
subject: Option<String>,
description: Option<String>,
},
}Expand description
One structured native fact with its meaning preserved across providers.
Unknown native fields remain in the bounded body instead of an untyped public map.
Variants§
Reason
A reason is meaningful within its reported domain.
Resource
A resource explicitly identified by the service, not a caller correlation ID.
Fields
FieldViolation
Native request field validation failure.
Fields
RetryDelay
Native retry guidance; it does not authorize an automatic retry.
QuotaViolation
Native quota violation.
Fields
PreconditionViolation
Native precondition failure.
Trait Implementations§
Source§impl Clone for NativeDetail
impl Clone for NativeDetail
Source§impl Debug for NativeDetail
impl Debug for NativeDetail
Source§impl<'de> Deserialize<'de> for NativeDetail
impl<'de> Deserialize<'de> for NativeDetail
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 Eq for NativeDetail
Source§impl PartialEq for NativeDetail
impl PartialEq for NativeDetail
Source§impl Serialize for NativeDetail
impl Serialize for NativeDetail
impl StructuralPartialEq for NativeDetail
Auto Trait Implementations§
impl Freeze for NativeDetail
impl RefUnwindSafe for NativeDetail
impl Send for NativeDetail
impl Sync for NativeDetail
impl Unpin for NativeDetail
impl UnsafeUnpin for NativeDetail
impl UnwindSafe for NativeDetail
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
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
Compare self to
key and return true if they are equal.