#[non_exhaustive]pub enum ErrorDetail {
RetryInfo(RetryInfo),
DebugInfo(DebugInfo),
QuotaFailure(QuotaFailure),
ErrorInfo(ErrorInfo),
PreconditionFailure(PreconditionFailure),
BadRequest(BadRequest),
RequestInfo(RequestInfo),
ResourceInfo(ResourceInfo),
Help(Help),
LocalizedMessage(LocalizedMessage),
}Expand description
Wraps the structs corresponding to the standard error messages, allowing the implementation and handling of vectors containing any of them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RetryInfo(RetryInfo)
Wraps the RetryInfo struct.
DebugInfo(DebugInfo)
Wraps the DebugInfo struct.
QuotaFailure(QuotaFailure)
Wraps the QuotaFailure struct.
ErrorInfo(ErrorInfo)
Wraps the ErrorInfo struct.
PreconditionFailure(PreconditionFailure)
Wraps the PreconditionFailure struct.
BadRequest(BadRequest)
Wraps the BadRequest struct.
RequestInfo(RequestInfo)
Wraps the RequestInfo struct.
ResourceInfo(ResourceInfo)
Wraps the ResourceInfo struct.
Help(Help)
Wraps the Help struct.
LocalizedMessage(LocalizedMessage)
Wraps the LocalizedMessage struct.
Trait Implementations§
Source§impl Clone for ErrorDetail
impl Clone for ErrorDetail
Source§fn clone(&self) -> ErrorDetail
fn clone(&self) -> ErrorDetail
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 ErrorDetail
impl Debug for ErrorDetail
Source§impl From<BadRequest> for ErrorDetail
impl From<BadRequest> for ErrorDetail
Source§fn from(err_detail: BadRequest) -> Self
fn from(err_detail: BadRequest) -> Self
Converts to this type from the input type.
Source§impl From<DebugInfo> for ErrorDetail
impl From<DebugInfo> for ErrorDetail
Source§impl From<ErrorInfo> for ErrorDetail
impl From<ErrorInfo> for ErrorDetail
Source§impl From<Help> for ErrorDetail
impl From<Help> for ErrorDetail
Source§impl From<LocalizedMessage> for ErrorDetail
impl From<LocalizedMessage> for ErrorDetail
Source§fn from(err_detail: LocalizedMessage) -> Self
fn from(err_detail: LocalizedMessage) -> Self
Converts to this type from the input type.
Source§impl From<PreconditionFailure> for ErrorDetail
impl From<PreconditionFailure> for ErrorDetail
Source§fn from(err_detail: PreconditionFailure) -> Self
fn from(err_detail: PreconditionFailure) -> Self
Converts to this type from the input type.
Source§impl From<QuotaFailure> for ErrorDetail
impl From<QuotaFailure> for ErrorDetail
Source§fn from(err_detail: QuotaFailure) -> Self
fn from(err_detail: QuotaFailure) -> Self
Converts to this type from the input type.
Source§impl From<RequestInfo> for ErrorDetail
impl From<RequestInfo> for ErrorDetail
Source§fn from(err_detail: RequestInfo) -> Self
fn from(err_detail: RequestInfo) -> Self
Converts to this type from the input type.
Source§impl From<ResourceInfo> for ErrorDetail
impl From<ResourceInfo> for ErrorDetail
Source§fn from(err_detail: ResourceInfo) -> Self
fn from(err_detail: ResourceInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorDetail
impl RefUnwindSafe for ErrorDetail
impl Send for ErrorDetail
impl Sync for ErrorDetail
impl Unpin for ErrorDetail
impl UnwindSafe for ErrorDetail
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request