#[non_exhaustive]pub struct RestoreBackupContext {
pub kind: String,
pub backup_run_id: i64,
pub instance_id: String,
pub project: String,
/* private fields */
}
Expand description
Database instance restore from backup context. Backup context contains source instance id and project id.
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.kind: String
This is always sql#restoreBackupContext
.
backup_run_id: i64
The ID of the backup run to restore from.
instance_id: String
The ID of the instance that the backup was taken from.
project: String
The full project ID of the source instance.
Implementations§
Source§impl RestoreBackupContext
impl RestoreBackupContext
pub fn new() -> Self
Sourcepub fn set_backup_run_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_backup_run_id<T: Into<i64>>(self, v: T) -> Self
Sets the value of backup_run_id.
Sourcepub fn set_instance_id<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_id<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_id.
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sets the value of project.
Trait Implementations§
Source§impl Clone for RestoreBackupContext
impl Clone for RestoreBackupContext
Source§fn clone(&self) -> RestoreBackupContext
fn clone(&self) -> RestoreBackupContext
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 RestoreBackupContext
impl Debug for RestoreBackupContext
Source§impl Default for RestoreBackupContext
impl Default for RestoreBackupContext
Source§fn default() -> RestoreBackupContext
fn default() -> RestoreBackupContext
Returns the “default value” for a type. Read more
Source§impl Message for RestoreBackupContext
impl Message for RestoreBackupContext
Source§impl PartialEq for RestoreBackupContext
impl PartialEq for RestoreBackupContext
impl StructuralPartialEq for RestoreBackupContext
Auto Trait Implementations§
impl Freeze for RestoreBackupContext
impl RefUnwindSafe for RestoreBackupContext
impl Send for RestoreBackupContext
impl Sync for RestoreBackupContext
impl Unpin for RestoreBackupContext
impl UnwindSafe for RestoreBackupContext
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