#[non_exhaustive]pub struct CreateRestorePlanRequest {
pub parent: String,
pub restore_plan: Option<RestorePlan>,
pub restore_plan_id: String,
/* private fields */
}Expand description
Request message for CreateRestorePlan.
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 RestorePlan.
Format: projects/*/locations/*
restore_plan: Option<RestorePlan>Required. The RestorePlan resource object to create.
restore_plan_id: StringRequired. The client-provided short name for the RestorePlan 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 RestorePlans in this location
Implementations§
Source§impl CreateRestorePlanRequest
impl CreateRestorePlanRequest
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_restore_plan<T>(self, v: T) -> Selfwhere
T: Into<RestorePlan>,
pub fn set_restore_plan<T>(self, v: T) -> Selfwhere
T: Into<RestorePlan>,
Sets the value of restore_plan.
§Example
ⓘ
use google_cloud_gkebackup_v1::model::RestorePlan;
let x = CreateRestorePlanRequest::new().set_restore_plan(RestorePlan::default()/* use setters */);Sourcepub fn set_or_clear_restore_plan<T>(self, v: Option<T>) -> Selfwhere
T: Into<RestorePlan>,
pub fn set_or_clear_restore_plan<T>(self, v: Option<T>) -> Selfwhere
T: Into<RestorePlan>,
Sets or clears the value of restore_plan.
§Example
ⓘ
use google_cloud_gkebackup_v1::model::RestorePlan;
let x = CreateRestorePlanRequest::new().set_or_clear_restore_plan(Some(RestorePlan::default()/* use setters */));
let x = CreateRestorePlanRequest::new().set_or_clear_restore_plan(None::<RestorePlan>);Sourcepub fn set_restore_plan_id<T: Into<String>>(self, v: T) -> Self
pub fn set_restore_plan_id<T: Into<String>>(self, v: T) -> Self
Sets the value of restore_plan_id.
§Example
ⓘ
let x = CreateRestorePlanRequest::new().set_restore_plan_id("example");Trait Implementations§
Source§impl Clone for CreateRestorePlanRequest
impl Clone for CreateRestorePlanRequest
Source§fn clone(&self) -> CreateRestorePlanRequest
fn clone(&self) -> CreateRestorePlanRequest
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 CreateRestorePlanRequest
impl Debug for CreateRestorePlanRequest
Source§impl Default for CreateRestorePlanRequest
impl Default for CreateRestorePlanRequest
Source§fn default() -> CreateRestorePlanRequest
fn default() -> CreateRestorePlanRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateRestorePlanRequest
impl Message for CreateRestorePlanRequest
Source§impl PartialEq for CreateRestorePlanRequest
impl PartialEq for CreateRestorePlanRequest
impl StructuralPartialEq for CreateRestorePlanRequest
Auto Trait Implementations§
impl Freeze for CreateRestorePlanRequest
impl RefUnwindSafe for CreateRestorePlanRequest
impl Send for CreateRestorePlanRequest
impl Sync for CreateRestorePlanRequest
impl Unpin for CreateRestorePlanRequest
impl UnsafeUnpin for CreateRestorePlanRequest
impl UnwindSafe for CreateRestorePlanRequest
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