#[non_exhaustive]pub struct OptimizeRestoredDatabaseMetadata {
pub name: String,
pub progress: Option<OperationProgress>,
/* private fields */
}Expand description
Metadata type for the long-running operation used to track the progress of optimizations performed on a newly restored database. This long-running operation is automatically created by the system after the successful completion of a database restore, and cannot be cancelled.
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.name: StringName of the restored database being optimized.
progress: Option<OperationProgress>The progress of the post-restore optimizations.
Implementations§
Source§impl OptimizeRestoredDatabaseMetadata
impl OptimizeRestoredDatabaseMetadata
pub fn new() -> Self
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.
Trait Implementations§
Source§impl Clone for OptimizeRestoredDatabaseMetadata
impl Clone for OptimizeRestoredDatabaseMetadata
Source§fn clone(&self) -> OptimizeRestoredDatabaseMetadata
fn clone(&self) -> OptimizeRestoredDatabaseMetadata
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 Default for OptimizeRestoredDatabaseMetadata
impl Default for OptimizeRestoredDatabaseMetadata
Source§fn default() -> OptimizeRestoredDatabaseMetadata
fn default() -> OptimizeRestoredDatabaseMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for OptimizeRestoredDatabaseMetadata
impl PartialEq for OptimizeRestoredDatabaseMetadata
Source§fn eq(&self, other: &OptimizeRestoredDatabaseMetadata) -> bool
fn eq(&self, other: &OptimizeRestoredDatabaseMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptimizeRestoredDatabaseMetadata
Auto Trait Implementations§
impl Freeze for OptimizeRestoredDatabaseMetadata
impl RefUnwindSafe for OptimizeRestoredDatabaseMetadata
impl Send for OptimizeRestoredDatabaseMetadata
impl Sync for OptimizeRestoredDatabaseMetadata
impl Unpin for OptimizeRestoredDatabaseMetadata
impl UnwindSafe for OptimizeRestoredDatabaseMetadata
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