#[non_exhaustive]pub struct GcpConfig {
pub access_config: Option<AccessConfig>,
pub kms_key: String,
/* private fields */
}Expand description
Configuration properties for a Kafka cluster deployed to Google Cloud Platform.
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.access_config: Option<AccessConfig>Required. Access configuration for the Kafka cluster.
kms_key: StringOptional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
Implementations§
Source§impl GcpConfig
impl GcpConfig
pub fn new() -> Self
Sourcepub fn set_access_config<T>(self, v: T) -> Selfwhere
T: Into<AccessConfig>,
pub fn set_access_config<T>(self, v: T) -> Selfwhere
T: Into<AccessConfig>,
Sets the value of access_config.
Sourcepub fn set_or_clear_access_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AccessConfig>,
pub fn set_or_clear_access_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AccessConfig>,
Sets or clears the value of access_config.
Sourcepub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key.
Trait Implementations§
impl StructuralPartialEq for GcpConfig
Auto Trait Implementations§
impl Freeze for GcpConfig
impl RefUnwindSafe for GcpConfig
impl Send for GcpConfig
impl Sync for GcpConfig
impl Unpin for GcpConfig
impl UnwindSafe for GcpConfig
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