#[non_exhaustive]pub struct OperationProgress {
pub progress_percent: i32,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
/* private fields */
}
Expand description
Encapsulates progress related information for a Cloud Spanner long running instance operations.
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.progress_percent: i32
Percent completion of the operation. Values are between 0 and 100 inclusive.
start_time: Option<Timestamp>
Time the request was received.
end_time: Option<Timestamp>
If set, the time at which this operation failed or was completed successfully.
Implementations§
Source§impl OperationProgress
impl OperationProgress
pub fn new() -> Self
Sourcepub fn set_progress_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_progress_percent<T: Into<i32>>(self, v: T) -> Self
Sets the value of progress_percent.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Trait Implementations§
Source§impl Clone for OperationProgress
impl Clone for OperationProgress
Source§fn clone(&self) -> OperationProgress
fn clone(&self) -> OperationProgress
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 OperationProgress
impl Debug for OperationProgress
Source§impl Default for OperationProgress
impl Default for OperationProgress
Source§fn default() -> OperationProgress
fn default() -> OperationProgress
Returns the “default value” for a type. Read more
Source§impl Message for OperationProgress
impl Message for OperationProgress
Source§impl PartialEq for OperationProgress
impl PartialEq for OperationProgress
impl StructuralPartialEq for OperationProgress
Auto Trait Implementations§
impl Freeze for OperationProgress
impl RefUnwindSafe for OperationProgress
impl Send for OperationProgress
impl Sync for OperationProgress
impl Unpin for OperationProgress
impl UnwindSafe for OperationProgress
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