#[non_exhaustive]pub struct RestoreInstanceRequest {
pub name: String,
pub file_share: String,
pub source: Option<Source>,
/* private fields */
}Expand description
RestoreInstanceRequest restores an existing instance’s file share from a backup.
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. The resource name of the instance, in the format
projects/{project_number}/locations/{location_id}/instances/{instance_id}.
Required. Name of the file share in the Filestore instance that the backup is being restored to.
source: Option<Source>Implementations§
Source§impl RestoreInstanceRequest
impl RestoreInstanceRequest
Sets the value of file_share.
§Example
ⓘ
let x = RestoreInstanceRequest::new().set_file_share("example");Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sourcepub fn source_backup(&self) -> Option<&String>
pub fn source_backup(&self) -> Option<&String>
The value of source
if it holds a SourceBackup, None if the field is not set or
holds a different branch.
Trait Implementations§
Source§impl Clone for RestoreInstanceRequest
impl Clone for RestoreInstanceRequest
Source§fn clone(&self) -> RestoreInstanceRequest
fn clone(&self) -> RestoreInstanceRequest
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 RestoreInstanceRequest
impl Debug for RestoreInstanceRequest
Source§impl Default for RestoreInstanceRequest
impl Default for RestoreInstanceRequest
Source§fn default() -> RestoreInstanceRequest
fn default() -> RestoreInstanceRequest
Returns the “default value” for a type. Read more
Source§impl Message for RestoreInstanceRequest
impl Message for RestoreInstanceRequest
Source§impl PartialEq for RestoreInstanceRequest
impl PartialEq for RestoreInstanceRequest
impl StructuralPartialEq for RestoreInstanceRequest
Auto Trait Implementations§
impl Freeze for RestoreInstanceRequest
impl RefUnwindSafe for RestoreInstanceRequest
impl Send for RestoreInstanceRequest
impl Sync for RestoreInstanceRequest
impl Unpin for RestoreInstanceRequest
impl UnsafeUnpin for RestoreInstanceRequest
impl UnwindSafe for RestoreInstanceRequest
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