#[non_exhaustive]pub struct TransferErrorSummary {
pub error_code: Code,
pub error_count: i64,
pub error_log_entries: Vec<TransferErrorLogEntry>,
/* 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: CodeOne of the error codes that caused the transfer failure.
error_count: i64Count of this type of error.
error_log_entries: Vec<TransferErrorLogEntry>A list of messages that carry the error details.
Implementations§
Source§impl TransferErrorSummary
impl TransferErrorSummary
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.
Sourcepub fn set_error_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_error_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of error_count.
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.
Trait Implementations§
Source§impl Clone for TransferErrorSummary
impl Clone for TransferErrorSummary
Source§fn clone(&self) -> TransferErrorSummary
fn clone(&self) -> TransferErrorSummary
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 TransferErrorSummary
impl Debug for TransferErrorSummary
Source§impl Default for TransferErrorSummary
impl Default for TransferErrorSummary
Source§fn default() -> TransferErrorSummary
fn default() -> TransferErrorSummary
Returns the “default value” for a type. Read more
Source§impl Message for TransferErrorSummary
impl Message for TransferErrorSummary
Source§impl PartialEq for TransferErrorSummary
impl PartialEq for TransferErrorSummary
impl StructuralPartialEq for TransferErrorSummary
Auto Trait Implementations§
impl Freeze for TransferErrorSummary
impl RefUnwindSafe for TransferErrorSummary
impl Send for TransferErrorSummary
impl Sync for TransferErrorSummary
impl Unpin for TransferErrorSummary
impl UnwindSafe for TransferErrorSummary
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