#[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
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.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
Sourcepub fn set_table_id<T: Into<String>>(self, v: T) -> Self
pub fn set_table_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for RestoreTableRequest
impl Clone for RestoreTableRequest
Source§fn clone(&self) -> RestoreTableRequest
fn clone(&self) -> RestoreTableRequest
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 RestoreTableRequest
impl Debug for RestoreTableRequest
Source§impl Default for RestoreTableRequest
impl Default for RestoreTableRequest
Source§fn default() -> RestoreTableRequest
fn default() -> RestoreTableRequest
Returns the “default value” for a type. Read more
Source§impl Message for RestoreTableRequest
impl Message for RestoreTableRequest
Source§impl PartialEq for RestoreTableRequest
impl PartialEq for RestoreTableRequest
impl StructuralPartialEq for RestoreTableRequest
Auto Trait Implementations§
impl Freeze for RestoreTableRequest
impl RefUnwindSafe for RestoreTableRequest
impl Send for RestoreTableRequest
impl Sync for RestoreTableRequest
impl Unpin for RestoreTableRequest
impl UnwindSafe for RestoreTableRequest
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