#[non_exhaustive]pub struct Replica {
pub location: String,
pub customer_managed_encryption: Option<CustomerManagedEncryption>,
}Expand description
Represents a Replica for this Secret.
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.location: StringThe canonical IDs of the location to replicate data.
For example: "us-east1".
customer_managed_encryption: Option<CustomerManagedEncryption>Optional. The customer-managed encryption configuration of the User-Managed Replica. If no configuration is provided, Google-managed default encryption is used.
Updates to the Secret encryption configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions.
Implementations§
Source§impl Replica
impl Replica
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sets the value of location.
Sourcepub fn set_customer_managed_encryption<T: Into<Option<CustomerManagedEncryption>>>(
self,
v: T,
) -> Self
pub fn set_customer_managed_encryption<T: Into<Option<CustomerManagedEncryption>>>( self, v: T, ) -> Self
Sets the value of customer_managed_encryption.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Replica
impl<'de> Deserialize<'de> for Replica
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
impl StructuralPartialEq for Replica
Auto Trait Implementations§
impl Freeze for Replica
impl RefUnwindSafe for Replica
impl Send for Replica
impl Sync for Replica
impl Unpin for Replica
impl UnwindSafe for Replica
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