#[non_exhaustive]pub struct UpdateDatabaseMetadata {
pub request: Option<UpdateDatabaseRequest>,
pub progress: Option<OperationProgress>,
pub cancel_time: Option<Timestamp>,
/* private fields */
}
Expand description
Metadata type for the operation returned by UpdateDatabase.
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.request: Option<UpdateDatabaseRequest>
The request for UpdateDatabase.
progress: Option<OperationProgress>
The progress of the UpdateDatabase operation.
cancel_time: Option<Timestamp>
The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is best-effort).
Implementations§
Source§impl UpdateDatabaseMetadata
impl UpdateDatabaseMetadata
pub fn new() -> Self
Sourcepub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<UpdateDatabaseRequest>,
pub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<UpdateDatabaseRequest>,
Sets the value of request.
Sourcepub fn set_or_clear_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpdateDatabaseRequest>,
pub fn set_or_clear_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpdateDatabaseRequest>,
Sets or clears the value of request.
Sourcepub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
pub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
Sets the value of progress.
Sourcepub fn set_or_clear_progress<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationProgress>,
pub fn set_or_clear_progress<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationProgress>,
Sets or clears the value of progress.
Sourcepub fn set_cancel_time<T>(self, v: T) -> Self
pub fn set_cancel_time<T>(self, v: T) -> Self
Sets the value of cancel_time.
Sourcepub fn set_or_clear_cancel_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cancel_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of cancel_time.
Trait Implementations§
Source§impl Clone for UpdateDatabaseMetadata
impl Clone for UpdateDatabaseMetadata
Source§fn clone(&self) -> UpdateDatabaseMetadata
fn clone(&self) -> UpdateDatabaseMetadata
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 UpdateDatabaseMetadata
impl Debug for UpdateDatabaseMetadata
Source§impl Default for UpdateDatabaseMetadata
impl Default for UpdateDatabaseMetadata
Source§fn default() -> UpdateDatabaseMetadata
fn default() -> UpdateDatabaseMetadata
Returns the “default value” for a type. Read more
Source§impl Message for UpdateDatabaseMetadata
impl Message for UpdateDatabaseMetadata
Source§impl PartialEq for UpdateDatabaseMetadata
impl PartialEq for UpdateDatabaseMetadata
impl StructuralPartialEq for UpdateDatabaseMetadata
Auto Trait Implementations§
impl Freeze for UpdateDatabaseMetadata
impl RefUnwindSafe for UpdateDatabaseMetadata
impl Send for UpdateDatabaseMetadata
impl Sync for UpdateDatabaseMetadata
impl Unpin for UpdateDatabaseMetadata
impl UnwindSafe for UpdateDatabaseMetadata
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