#[non_exhaustive]pub struct CloudSQLBackupRunSource {
pub project: String,
pub instance_id: String,
pub backup_run_id: i64,
/* private fields */
}Expand description
The source CloudSQL backup resource.
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.project: StringThe project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster’s project.
instance_id: StringRequired. The CloudSQL instance ID.
backup_run_id: i64Required. The CloudSQL backup run ID.
Implementations§
Source§impl CloudSQLBackupRunSource
impl CloudSQLBackupRunSource
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
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.
§Example
ⓘ
let x = CloudSQLBackupRunSource::new().set_instance_id("example");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.
§Example
ⓘ
let x = CloudSQLBackupRunSource::new().set_backup_run_id(42);Trait Implementations§
Source§impl Clone for CloudSQLBackupRunSource
impl Clone for CloudSQLBackupRunSource
Source§fn clone(&self) -> CloudSQLBackupRunSource
fn clone(&self) -> CloudSQLBackupRunSource
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 CloudSQLBackupRunSource
impl Debug for CloudSQLBackupRunSource
Source§impl Default for CloudSQLBackupRunSource
impl Default for CloudSQLBackupRunSource
Source§fn default() -> CloudSQLBackupRunSource
fn default() -> CloudSQLBackupRunSource
Returns the “default value” for a type. Read more
Source§impl Message for CloudSQLBackupRunSource
impl Message for CloudSQLBackupRunSource
Source§impl PartialEq for CloudSQLBackupRunSource
impl PartialEq for CloudSQLBackupRunSource
impl StructuralPartialEq for CloudSQLBackupRunSource
Auto Trait Implementations§
impl Freeze for CloudSQLBackupRunSource
impl RefUnwindSafe for CloudSQLBackupRunSource
impl Send for CloudSQLBackupRunSource
impl Sync for CloudSQLBackupRunSource
impl Unpin for CloudSQLBackupRunSource
impl UnsafeUnpin for CloudSQLBackupRunSource
impl UnwindSafe for CloudSQLBackupRunSource
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