#[non_exhaustive]pub struct SnapshotSettings {
pub storage_location: Option<SnapshotSettingsStorageLocationSettings>,
/* private fields */
}Available on crate feature
snapshot-settings only.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.storage_location: Option<SnapshotSettingsStorageLocationSettings>Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.
Implementations§
Source§impl SnapshotSettings
impl SnapshotSettings
pub fn new() -> Self
Sourcepub fn set_storage_location<T>(self, v: T) -> Selfwhere
T: Into<SnapshotSettingsStorageLocationSettings>,
pub fn set_storage_location<T>(self, v: T) -> Selfwhere
T: Into<SnapshotSettingsStorageLocationSettings>,
Sets the value of storage_location.
§Example
ⓘ
use google_cloud_compute_v1::model::SnapshotSettingsStorageLocationSettings;
let x = SnapshotSettings::new().set_storage_location(SnapshotSettingsStorageLocationSettings::default()/* use setters */);Sourcepub fn set_or_clear_storage_location<T>(self, v: Option<T>) -> Selfwhere
T: Into<SnapshotSettingsStorageLocationSettings>,
pub fn set_or_clear_storage_location<T>(self, v: Option<T>) -> Selfwhere
T: Into<SnapshotSettingsStorageLocationSettings>,
Sets or clears the value of storage_location.
§Example
ⓘ
use google_cloud_compute_v1::model::SnapshotSettingsStorageLocationSettings;
let x = SnapshotSettings::new().set_or_clear_storage_location(Some(SnapshotSettingsStorageLocationSettings::default()/* use setters */));
let x = SnapshotSettings::new().set_or_clear_storage_location(None::<SnapshotSettingsStorageLocationSettings>);Trait Implementations§
Source§impl Clone for SnapshotSettings
impl Clone for SnapshotSettings
Source§fn clone(&self) -> SnapshotSettings
fn clone(&self) -> SnapshotSettings
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 SnapshotSettings
impl Debug for SnapshotSettings
Source§impl Default for SnapshotSettings
impl Default for SnapshotSettings
Source§fn default() -> SnapshotSettings
fn default() -> SnapshotSettings
Returns the “default value” for a type. Read more
Source§impl Message for SnapshotSettings
impl Message for SnapshotSettings
Source§impl PartialEq for SnapshotSettings
impl PartialEq for SnapshotSettings
impl StructuralPartialEq for SnapshotSettings
Auto Trait Implementations§
impl Freeze for SnapshotSettings
impl RefUnwindSafe for SnapshotSettings
impl Send for SnapshotSettings
impl Sync for SnapshotSettings
impl Unpin for SnapshotSettings
impl UnwindSafe for SnapshotSettings
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