#[non_exhaustive]pub struct ExportBackupRequest {
pub name: String,
pub destination: Option<Destination>,
/* private fields */
}Expand description
Request for [ExportBackup].
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.name: StringRequired. Redis backup resource name using the form:
projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}
destination: Option<Destination>Required. Specify destination to export a backup.
Implementations§
Source§impl ExportBackupRequest
impl ExportBackupRequest
pub fn new() -> Self
Sourcepub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
pub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
Sets the value of destination.
Note that all the setters affecting destination are mutually
exclusive.
Sourcepub fn gcs_bucket(&self) -> Option<&String>
pub fn gcs_bucket(&self) -> Option<&String>
The value of destination
if it holds a GcsBucket, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of destination
to hold a GcsBucket.
Note that all the setters affecting destination are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ExportBackupRequest
impl Clone for ExportBackupRequest
Source§fn clone(&self) -> ExportBackupRequest
fn clone(&self) -> ExportBackupRequest
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 ExportBackupRequest
impl Debug for ExportBackupRequest
Source§impl Default for ExportBackupRequest
impl Default for ExportBackupRequest
Source§fn default() -> ExportBackupRequest
fn default() -> ExportBackupRequest
Returns the “default value” for a type. Read more
Source§impl Message for ExportBackupRequest
impl Message for ExportBackupRequest
Source§impl PartialEq for ExportBackupRequest
impl PartialEq for ExportBackupRequest
impl StructuralPartialEq for ExportBackupRequest
Auto Trait Implementations§
impl Freeze for ExportBackupRequest
impl RefUnwindSafe for ExportBackupRequest
impl Send for ExportBackupRequest
impl Sync for ExportBackupRequest
impl Unpin for ExportBackupRequest
impl UnwindSafe for ExportBackupRequest
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