#[non_exhaustive]pub struct RestoreTableRequest {
pub parent: String,
pub table_id: String,
pub source: Option<Source>,
/* private fields */
}Expand description
The request for 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.parent: StringRequired. The name of the instance in which to create the restored
table. Values are of the form projects/<project>/instances/<instance>.
table_id: StringRequired. The id of the table to create and restore to. This
table must not already exist. The table_id appended to
parent forms the full table name of the form
projects/<project>/instances/<instance>/tables/<table_id>.
source: Option<Source>Required. The source from which to restore.
Implementations§
Source§impl RestoreTableRequest
impl RestoreTableRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_table_id<T: Into<String>>(self, v: T) -> Self
pub fn set_table_id<T: Into<String>>(self, v: T) -> Self
Sets the value of table_id.
Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are mutually
exclusive.
Sourcepub fn backup(&self) -> Option<&String>
pub fn backup(&self) -> Option<&String>
The value of source
if it holds a Backup, None if the field is not set or
holds a different branch.
Sourcepub fn set_backup<T: Into<String>>(self, v: T) -> Self
pub fn set_backup<T: Into<String>>(self, v: T) -> Self
Sets the value of source
to hold a Backup.
Note that all the setters affecting source are
mutually exclusive.
Trait Implementations§
Source§impl Clone for RestoreTableRequest
impl Clone for RestoreTableRequest
Source§fn clone(&self) -> RestoreTableRequest
fn clone(&self) -> RestoreTableRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more