#[non_exhaustive]pub struct CreateBackupPlanRequest {
pub parent: String,
pub backup_plan: Option<BackupPlan>,
pub backup_plan_id: String,
/* private fields */
}Expand description
Request message for CreateBackupPlan.
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 location within which to create the BackupPlan.
Format: projects/*/locations/*
backup_plan: Option<BackupPlan>Required. The BackupPlan resource object to create.
backup_plan_id: StringRequired. The client-provided short name for the BackupPlan resource. This name must:
- be between 1 and 63 characters long (inclusive)
- consist of only lower-case ASCII letters, numbers, and dashes
- start with a lower-case letter
- end with a lower-case letter or number
- be unique within the set of BackupPlans in this location
Implementations§
Source§impl CreateBackupPlanRequest
impl CreateBackupPlanRequest
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_backup_plan<T>(self, v: T) -> Selfwhere
T: Into<BackupPlan>,
pub fn set_backup_plan<T>(self, v: T) -> Selfwhere
T: Into<BackupPlan>,
Sets the value of backup_plan.
§Example
ⓘ
use google_cloud_gkebackup_v1::model::BackupPlan;
let x = CreateBackupPlanRequest::new().set_backup_plan(BackupPlan::default()/* use setters */);Sourcepub fn set_or_clear_backup_plan<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupPlan>,
pub fn set_or_clear_backup_plan<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupPlan>,
Sets or clears the value of backup_plan.
§Example
ⓘ
use google_cloud_gkebackup_v1::model::BackupPlan;
let x = CreateBackupPlanRequest::new().set_or_clear_backup_plan(Some(BackupPlan::default()/* use setters */));
let x = CreateBackupPlanRequest::new().set_or_clear_backup_plan(None::<BackupPlan>);Sourcepub fn set_backup_plan_id<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_plan_id<T: Into<String>>(self, v: T) -> Self
Sets the value of backup_plan_id.
§Example
ⓘ
let x = CreateBackupPlanRequest::new().set_backup_plan_id("example");Trait Implementations§
Source§impl Clone for CreateBackupPlanRequest
impl Clone for CreateBackupPlanRequest
Source§fn clone(&self) -> CreateBackupPlanRequest
fn clone(&self) -> CreateBackupPlanRequest
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 CreateBackupPlanRequest
impl Debug for CreateBackupPlanRequest
Source§impl Default for CreateBackupPlanRequest
impl Default for CreateBackupPlanRequest
Source§fn default() -> CreateBackupPlanRequest
fn default() -> CreateBackupPlanRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateBackupPlanRequest
impl Message for CreateBackupPlanRequest
Source§impl PartialEq for CreateBackupPlanRequest
impl PartialEq for CreateBackupPlanRequest
impl StructuralPartialEq for CreateBackupPlanRequest
Auto Trait Implementations§
impl Freeze for CreateBackupPlanRequest
impl RefUnwindSafe for CreateBackupPlanRequest
impl Send for CreateBackupPlanRequest
impl Sync for CreateBackupPlanRequest
impl Unpin for CreateBackupPlanRequest
impl UnsafeUnpin for CreateBackupPlanRequest
impl UnwindSafe for CreateBackupPlanRequest
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