#[non_exhaustive]pub struct ErrorSummary {
pub error_code: Code,
pub error_count: i64,
pub error_log_entries: Vec<ErrorLogEntry>,
/* private fields */
}Expand description
A summary of errors by error code, plus a count and sample error log entries.
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.error_code: CodeRequired. The canonical error code.
error_count: i64Required. Number of errors encountered per error_code.
error_log_entries: Vec<ErrorLogEntry>Required. Sample error logs.
Implementations§
Source§impl ErrorSummary
impl ErrorSummary
pub fn new() -> Self
Sourcepub fn set_error_code<T: Into<Code>>(self, v: T) -> Self
pub fn set_error_code<T: Into<Code>>(self, v: T) -> Self
Sets the value of error_code.
§Example
ⓘ
use rpc::model::Code;
let x0 = ErrorSummary::new().set_error_code(Code::Cancelled);
let x1 = ErrorSummary::new().set_error_code(Code::Unknown);
let x2 = ErrorSummary::new().set_error_code(Code::InvalidArgument);Sourcepub fn set_error_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_error_count<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_error_log_entries<T, V>(self, v: T) -> Self
pub fn set_error_log_entries<T, V>(self, v: T) -> Self
Sets the value of error_log_entries.
§Example
ⓘ
use google_cloud_storagebatchoperations_v1::model::ErrorLogEntry;
let x = ErrorSummary::new()
.set_error_log_entries([
ErrorLogEntry::default()/* use setters */,
ErrorLogEntry::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for ErrorSummary
impl Clone for ErrorSummary
Source§fn clone(&self) -> ErrorSummary
fn clone(&self) -> ErrorSummary
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 ErrorSummary
impl Debug for ErrorSummary
Source§impl Default for ErrorSummary
impl Default for ErrorSummary
Source§fn default() -> ErrorSummary
fn default() -> ErrorSummary
Returns the “default value” for a type. Read more
Source§impl Message for ErrorSummary
impl Message for ErrorSummary
Source§impl PartialEq for ErrorSummary
impl PartialEq for ErrorSummary
impl StructuralPartialEq for ErrorSummary
Auto Trait Implementations§
impl Freeze for ErrorSummary
impl RefUnwindSafe for ErrorSummary
impl Send for ErrorSummary
impl Sync for ErrorSummary
impl Unpin for ErrorSummary
impl UnwindSafe for ErrorSummary
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