#[non_exhaustive]pub struct Replication {
pub replication: Option<Replication>,
/* private fields */
}Expand description
A policy that defines the replication and encryption configuration of data.
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.replication: Option<Replication>The replication policy for this secret.
Implementations§
Source§impl Replication
impl Replication
pub fn new() -> Self
Sourcepub fn set_replication<T: Into<Option<Replication>>>(self, v: T) -> Self
pub fn set_replication<T: Into<Option<Replication>>>(self, v: T) -> Self
Sets the value of replication.
Note that all the setters affecting replication are mutually
exclusive.
§Example
ⓘ
use google_cloud_secretmanager_v1::model::replication::Automatic;
let x = Replication::new().set_replication(Some(
google_cloud_secretmanager_v1::model::replication::Replication::Automatic(Automatic::default().into())));Sourcepub fn automatic(&self) -> Option<&Box<Automatic>>
pub fn automatic(&self) -> Option<&Box<Automatic>>
The value of replication
if it holds a Automatic, None if the field is not set or
holds a different branch.
Sourcepub fn set_automatic<T: Into<Box<Automatic>>>(self, v: T) -> Self
pub fn set_automatic<T: Into<Box<Automatic>>>(self, v: T) -> Self
Sets the value of replication
to hold a Automatic.
Note that all the setters affecting replication are
mutually exclusive.
§Example
ⓘ
use google_cloud_secretmanager_v1::model::replication::Automatic;
let x = Replication::new().set_automatic(Automatic::default()/* use setters */);
assert!(x.automatic().is_some());
assert!(x.user_managed().is_none());Sourcepub fn user_managed(&self) -> Option<&Box<UserManaged>>
pub fn user_managed(&self) -> Option<&Box<UserManaged>>
The value of replication
if it holds a UserManaged, None if the field is not set or
holds a different branch.
Sourcepub fn set_user_managed<T: Into<Box<UserManaged>>>(self, v: T) -> Self
pub fn set_user_managed<T: Into<Box<UserManaged>>>(self, v: T) -> Self
Sets the value of replication
to hold a UserManaged.
Note that all the setters affecting replication are
mutually exclusive.
§Example
ⓘ
use google_cloud_secretmanager_v1::model::replication::UserManaged;
let x = Replication::new().set_user_managed(UserManaged::default()/* use setters */);
assert!(x.user_managed().is_some());
assert!(x.automatic().is_none());Trait Implementations§
Source§impl Clone for Replication
impl Clone for Replication
Source§fn clone(&self) -> Replication
fn clone(&self) -> Replication
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 Replication
impl Debug for Replication
Source§impl Default for Replication
impl Default for Replication
Source§fn default() -> Replication
fn default() -> Replication
Returns the “default value” for a type. Read more
Source§impl Message for Replication
impl Message for Replication
Source§impl PartialEq for Replication
impl PartialEq for Replication
impl StructuralPartialEq for Replication
Auto Trait Implementations§
impl Freeze for Replication
impl RefUnwindSafe for Replication
impl Send for Replication
impl Sync for Replication
impl Unpin for Replication
impl UnsafeUnpin for Replication
impl UnwindSafe for Replication
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