#[non_exhaustive]pub struct Replication {
pub replication: Option<Replication>,
}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
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.
Sourcepub fn get_automatic(&self) -> Option<&Box<Automatic>>
pub fn get_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 get_user_managed(&self) -> Option<&Box<UserManaged>>
pub fn get_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_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.
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.
Trait Implementations§
Source§impl Clone for Replication
impl Clone for Replication
Source§fn clone(&self) -> Replication
fn clone(&self) -> Replication
Returns a copy 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<'de> Deserialize<'de> for Replicationwhere
Replication: Default,
impl<'de> Deserialize<'de> for Replicationwhere
Replication: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for Replication
impl Message for Replication
Source§impl PartialEq for Replication
impl PartialEq for Replication
Source§impl Serialize for Replication
impl Serialize 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 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