#[non_exhaustive]pub struct ResourceErrorDetail {
pub resource_info: Option<ResourceInfo>,
pub error_details: Vec<ErrorDetail>,
pub error_count: i32,
/* private fields */
}Expand description
Provides details for errors and the corresponding resources.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resource_info: Option<ResourceInfo>Required. Information about the resource where the error is located.
error_details: Vec<ErrorDetail>Required. The error details for the resource.
error_count: i32Required. How many errors there are in total for the resource. Truncation
can be indicated by having an error_count that is higher than the size of
error_details.
Implementations§
Source§impl ResourceErrorDetail
impl ResourceErrorDetail
pub fn new() -> Self
Sourcepub fn set_resource_info<T>(self, v: T) -> Selfwhere
T: Into<ResourceInfo>,
pub fn set_resource_info<T>(self, v: T) -> Selfwhere
T: Into<ResourceInfo>,
Sets the value of resource_info.
Sourcepub fn set_or_clear_resource_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceInfo>,
pub fn set_or_clear_resource_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceInfo>,
Sets or clears the value of resource_info.
Sourcepub fn set_error_details<T, V>(self, v: T) -> Self
pub fn set_error_details<T, V>(self, v: T) -> Self
Sets the value of error_details.
Sourcepub fn set_error_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_error_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of error_count.
Trait Implementations§
Source§impl Clone for ResourceErrorDetail
impl Clone for ResourceErrorDetail
Source§fn clone(&self) -> ResourceErrorDetail
fn clone(&self) -> ResourceErrorDetail
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 ResourceErrorDetail
impl Debug for ResourceErrorDetail
Source§impl Default for ResourceErrorDetail
impl Default for ResourceErrorDetail
Source§fn default() -> ResourceErrorDetail
fn default() -> ResourceErrorDetail
Returns the “default value” for a type. Read more
Source§impl Message for ResourceErrorDetail
impl Message for ResourceErrorDetail
Source§impl PartialEq for ResourceErrorDetail
impl PartialEq for ResourceErrorDetail
impl StructuralPartialEq for ResourceErrorDetail
Auto Trait Implementations§
impl Freeze for ResourceErrorDetail
impl RefUnwindSafe for ResourceErrorDetail
impl Send for ResourceErrorDetail
impl Sync for ResourceErrorDetail
impl Unpin for ResourceErrorDetail
impl UnwindSafe for ResourceErrorDetail
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