#[non_exhaustive]pub struct Counters {
pub total_object_count: i64,
pub succeeded_object_count: i64,
pub failed_object_count: i64,
/* private fields */
}Expand description
Describes details about the progress of the job.
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.total_object_count: i64Output only. Number of objects listed.
succeeded_object_count: i64Output only. Number of objects completed.
failed_object_count: i64Output only. Number of objects failed.
Implementations§
Source§impl Counters
impl Counters
pub fn new() -> Self
Sourcepub fn set_total_object_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_total_object_count<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_succeeded_object_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_succeeded_object_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of succeeded_object_count.
§Example
ⓘ
let x = Counters::new().set_succeeded_object_count(42);Sourcepub fn set_failed_object_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_failed_object_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of failed_object_count.
§Example
ⓘ
let x = Counters::new().set_failed_object_count(42);Trait Implementations§
impl StructuralPartialEq for Counters
Auto Trait Implementations§
impl Freeze for Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnwindSafe for Counters
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