#[non_exhaustive]pub struct RestoreTableMetadata {
pub name: String,
pub source_type: RestoreSourceType,
pub optimize_table_operation_name: String,
pub progress: Option<OperationProgress>,
pub source_info: Option<SourceInfo>,
/* private fields */
}Expand description
Metadata type for the long-running operation returned by RestoreTable.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringName of the table being created and restored to.
source_type: RestoreSourceTypeThe type of the restore source.
optimize_table_operation_name: StringIf exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored table. The metadata type of the long-running operation is [OptimizeRestoreTableMetadata][]. The response type is [Empty][google.protobuf.Empty]. This long-running operation may be automatically created by the system if applicable after the RestoreTable long-running operation completes successfully. This operation may not be created if the table is already optimized or the restore was not successful.
progress: Option<OperationProgress>The progress of the RestoreTable operation.
source_info: Option<SourceInfo>Information about the source used to restore the table, as specified by
source in
RestoreTableRequest.
Implementations§
Source§impl RestoreTableMetadata
impl RestoreTableMetadata
Sourcepub fn set_source_type<T: Into<RestoreSourceType>>(self, v: T) -> Self
pub fn set_source_type<T: Into<RestoreSourceType>>(self, v: T) -> Self
Sets the value of source_type.
§Example
use google_cloud_bigtable_admin_v2::model::RestoreSourceType;
let x0 = RestoreTableMetadata::new().set_source_type(RestoreSourceType::Backup);Sourcepub fn set_optimize_table_operation_name<T: Into<String>>(self, v: T) -> Self
pub fn set_optimize_table_operation_name<T: Into<String>>(self, v: T) -> Self
Sets the value of optimize_table_operation_name.
§Example
let x = RestoreTableMetadata::new().set_optimize_table_operation_name("example");Sourcepub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
pub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
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.
§Example
use google_cloud_bigtable_admin_v2::model::OperationProgress;
let x = RestoreTableMetadata::new().set_or_clear_progress(Some(OperationProgress::default()/* use setters */));
let x = RestoreTableMetadata::new().set_or_clear_progress(None::<OperationProgress>);Sourcepub fn set_source_info<T: Into<Option<SourceInfo>>>(self, v: T) -> Self
pub fn set_source_info<T: Into<Option<SourceInfo>>>(self, v: T) -> Self
Sets the value of source_info.
Note that all the setters affecting source_info are mutually
exclusive.
§Example
use google_cloud_bigtable_admin_v2::model::BackupInfo;
let x = RestoreTableMetadata::new().set_source_info(Some(
google_cloud_bigtable_admin_v2::model::restore_table_metadata::SourceInfo::BackupInfo(BackupInfo::default().into())));Sourcepub fn backup_info(&self) -> Option<&Box<BackupInfo>>
pub fn backup_info(&self) -> Option<&Box<BackupInfo>>
The value of source_info
if it holds a BackupInfo, None if the field is not set or
holds a different branch.
Sourcepub fn set_backup_info<T: Into<Box<BackupInfo>>>(self, v: T) -> Self
pub fn set_backup_info<T: Into<Box<BackupInfo>>>(self, v: T) -> Self
Sets the value of source_info
to hold a BackupInfo.
Note that all the setters affecting source_info are
mutually exclusive.
§Example
use google_cloud_bigtable_admin_v2::model::BackupInfo;
let x = RestoreTableMetadata::new().set_backup_info(BackupInfo::default()/* use setters */);
assert!(x.backup_info().is_some());Trait Implementations§
Source§impl Clone for RestoreTableMetadata
impl Clone for RestoreTableMetadata
Source§fn clone(&self) -> RestoreTableMetadata
fn clone(&self) -> RestoreTableMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RestoreTableMetadata
impl Debug for RestoreTableMetadata
Source§impl Default for RestoreTableMetadata
impl Default for RestoreTableMetadata
Source§fn default() -> RestoreTableMetadata
fn default() -> RestoreTableMetadata
Source§impl Message for RestoreTableMetadata
impl Message for RestoreTableMetadata
Source§impl PartialEq for RestoreTableMetadata
impl PartialEq for RestoreTableMetadata
impl StructuralPartialEq for RestoreTableMetadata
Auto Trait Implementations§
impl Freeze for RestoreTableMetadata
impl RefUnwindSafe for RestoreTableMetadata
impl Send for RestoreTableMetadata
impl Sync for RestoreTableMetadata
impl Unpin for RestoreTableMetadata
impl UnsafeUnpin for RestoreTableMetadata
impl UnwindSafe for RestoreTableMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request