#[non_exhaustive]pub struct BackupSource {
pub backup_uid: String,
pub backup_name: String,
/* private fields */
}Expand description
Message describing a BackupSource.
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.backup_uid: StringOutput only. The system-generated UID of the backup which was used to create this resource. The UID is generated when the backup is created, and it is retained until the backup is deleted.
backup_name: StringRequired. The name of the backup resource with the format:
- projects/{project}/locations/{region}/backups/{backup_id}
Implementations§
Source§impl BackupSource
impl BackupSource
pub fn new() -> Self
Sourcepub fn set_backup_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_uid<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_backup_name<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_name<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for BackupSource
impl Clone for BackupSource
Source§fn clone(&self) -> BackupSource
fn clone(&self) -> BackupSource
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 BackupSource
impl Debug for BackupSource
Source§impl Default for BackupSource
impl Default for BackupSource
Source§fn default() -> BackupSource
fn default() -> BackupSource
Returns the “default value” for a type. Read more
Source§impl Message for BackupSource
impl Message for BackupSource
Source§impl PartialEq for BackupSource
impl PartialEq for BackupSource
impl StructuralPartialEq for BackupSource
Auto Trait Implementations§
impl Freeze for BackupSource
impl RefUnwindSafe for BackupSource
impl Send for BackupSource
impl Sync for BackupSource
impl Unpin for BackupSource
impl UnsafeUnpin for BackupSource
impl UnwindSafe for BackupSource
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