#[non_exhaustive]pub struct CreateRestoreRequest {
pub parent: String,
pub restore: Option<Restore>,
pub restore_id: String,
/* private fields */
}Expand description
Request message for CreateRestore.
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 RestorePlan within which to create the Restore.
Format: projects/*/locations/*/restorePlans/*
restore: Option<Restore>Required. The restore resource to create.
restore_id: StringRequired. The client-provided short name for the Restore 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 Restores in this RestorePlan.
Implementations§
Source§impl CreateRestoreRequest
impl CreateRestoreRequest
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<T>(self, v: T) -> Self
pub fn set_restore<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_restore<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_restore<T>(self, v: Option<T>) -> Self
Sourcepub fn set_restore_id<T: Into<String>>(self, v: T) -> Self
pub fn set_restore_id<T: Into<String>>(self, v: T) -> Self
Sets the value of restore_id.
§Example
ⓘ
let x = CreateRestoreRequest::new().set_restore_id("example");Trait Implementations§
Source§impl Clone for CreateRestoreRequest
impl Clone for CreateRestoreRequest
Source§fn clone(&self) -> CreateRestoreRequest
fn clone(&self) -> CreateRestoreRequest
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 CreateRestoreRequest
impl Debug for CreateRestoreRequest
Source§impl Default for CreateRestoreRequest
impl Default for CreateRestoreRequest
Source§fn default() -> CreateRestoreRequest
fn default() -> CreateRestoreRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateRestoreRequest
impl Message for CreateRestoreRequest
Source§impl PartialEq for CreateRestoreRequest
impl PartialEq for CreateRestoreRequest
impl StructuralPartialEq for CreateRestoreRequest
Auto Trait Implementations§
impl Freeze for CreateRestoreRequest
impl RefUnwindSafe for CreateRestoreRequest
impl Send for CreateRestoreRequest
impl Sync for CreateRestoreRequest
impl Unpin for CreateRestoreRequest
impl UnsafeUnpin for CreateRestoreRequest
impl UnwindSafe for CreateRestoreRequest
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