Struct tonic_richer_error::ResourceInfo
source · pub struct ResourceInfo {
pub resource_type: String,
pub resource_name: String,
pub owner: String,
pub description: String,
}
Expand description
Used to encode/decode the ResourceInfo
standard error message described
in error_details.proto. Describes the resource that is being accessed.
Fields§
§resource_type: String
Type of resource being accessed.
resource_name: String
Name of the resource being accessed.
owner: String
The owner of the resource (optional).
description: String
Describes the error encountered when accessing the resource.
Implementations§
source§impl ResourceInfo
impl ResourceInfo
source§impl ResourceInfo
impl ResourceInfo
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if ResourceInfo
fields are empty, and false
if
they are not.
Trait Implementations§
source§impl Clone for ResourceInfo
impl Clone for ResourceInfo
source§fn clone(&self) -> ResourceInfo
fn clone(&self) -> ResourceInfo
Returns a copy 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 ResourceInfo
impl Debug for ResourceInfo
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 RefUnwindSafe for ResourceInfo
impl Send for ResourceInfo
impl Sync for ResourceInfo
impl Unpin for ResourceInfo
impl UnwindSafe for ResourceInfo
Blanket Implementations§
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