#[non_exhaustive]pub struct InstantSnapshotGroupSourceInfo {
pub consistency_group: Option<String>,
pub consistency_group_id: Option<String>,
/* private fields */
}Available on crate features
instant-snapshot-groups or region-instant-snapshot-groups 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.consistency_group: Option<String>§consistency_group_id: Option<String>Implementations§
Source§impl InstantSnapshotGroupSourceInfo
impl InstantSnapshotGroupSourceInfo
Sourcepub fn set_consistency_group<T>(self, v: T) -> Self
pub fn set_consistency_group<T>(self, v: T) -> Self
Sets the value of consistency_group.
§Example
ⓘ
let x = InstantSnapshotGroupSourceInfo::new().set_consistency_group("example");Sourcepub fn set_or_clear_consistency_group<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_consistency_group<T>(self, v: Option<T>) -> Self
Sets or clears the value of consistency_group.
§Example
ⓘ
let x = InstantSnapshotGroupSourceInfo::new().set_or_clear_consistency_group(Some("example"));
let x = InstantSnapshotGroupSourceInfo::new().set_or_clear_consistency_group(None::<String>);Sourcepub fn set_consistency_group_id<T>(self, v: T) -> Self
pub fn set_consistency_group_id<T>(self, v: T) -> Self
Sets the value of consistency_group_id.
§Example
ⓘ
let x = InstantSnapshotGroupSourceInfo::new().set_consistency_group_id("example");Sourcepub fn set_or_clear_consistency_group_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_consistency_group_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of consistency_group_id.
§Example
ⓘ
let x = InstantSnapshotGroupSourceInfo::new().set_or_clear_consistency_group_id(Some("example"));
let x = InstantSnapshotGroupSourceInfo::new().set_or_clear_consistency_group_id(None::<String>);Trait Implementations§
Source§impl Clone for InstantSnapshotGroupSourceInfo
impl Clone for InstantSnapshotGroupSourceInfo
Source§fn clone(&self) -> InstantSnapshotGroupSourceInfo
fn clone(&self) -> InstantSnapshotGroupSourceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InstantSnapshotGroupSourceInfo
impl Default for InstantSnapshotGroupSourceInfo
Source§fn default() -> InstantSnapshotGroupSourceInfo
fn default() -> InstantSnapshotGroupSourceInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstantSnapshotGroupSourceInfo
impl PartialEq for InstantSnapshotGroupSourceInfo
Source§fn eq(&self, other: &InstantSnapshotGroupSourceInfo) -> bool
fn eq(&self, other: &InstantSnapshotGroupSourceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstantSnapshotGroupSourceInfo
Auto Trait Implementations§
impl Freeze for InstantSnapshotGroupSourceInfo
impl RefUnwindSafe for InstantSnapshotGroupSourceInfo
impl Send for InstantSnapshotGroupSourceInfo
impl Sync for InstantSnapshotGroupSourceInfo
impl Unpin for InstantSnapshotGroupSourceInfo
impl UnsafeUnpin for InstantSnapshotGroupSourceInfo
impl UnwindSafe for InstantSnapshotGroupSourceInfo
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