#[non_exhaustive]pub struct ConnectGcpConfig {
pub access_config: Option<ConnectAccessConfig>,
pub secret_paths: Vec<String>,
/* private fields */
}Expand description
Configuration properties for a Kafka Connect 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<ConnectAccessConfig>Required. Access configuration for the Kafka Connect cluster.
secret_paths: Vec<String>Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided – aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>
Implementations§
Source§impl ConnectGcpConfig
impl ConnectGcpConfig
pub fn new() -> Self
Sourcepub fn set_access_config<T>(self, v: T) -> Selfwhere
T: Into<ConnectAccessConfig>,
pub fn set_access_config<T>(self, v: T) -> Selfwhere
T: Into<ConnectAccessConfig>,
Sets the value of access_config.
Sourcepub fn set_or_clear_access_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConnectAccessConfig>,
pub fn set_or_clear_access_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConnectAccessConfig>,
Sets or clears the value of access_config.
Sourcepub fn set_secret_paths<T, V>(self, v: T) -> Self
pub fn set_secret_paths<T, V>(self, v: T) -> Self
Sets the value of secret_paths.
Trait Implementations§
Source§impl Clone for ConnectGcpConfig
impl Clone for ConnectGcpConfig
Source§fn clone(&self) -> ConnectGcpConfig
fn clone(&self) -> ConnectGcpConfig
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 ConnectGcpConfig
impl Debug for ConnectGcpConfig
Source§impl Default for ConnectGcpConfig
impl Default for ConnectGcpConfig
Source§fn default() -> ConnectGcpConfig
fn default() -> ConnectGcpConfig
Returns the “default value” for a type. Read more
Source§impl Message for ConnectGcpConfig
impl Message for ConnectGcpConfig
Source§impl PartialEq for ConnectGcpConfig
impl PartialEq for ConnectGcpConfig
impl StructuralPartialEq for ConnectGcpConfig
Auto Trait Implementations§
impl Freeze for ConnectGcpConfig
impl RefUnwindSafe for ConnectGcpConfig
impl Send for ConnectGcpConfig
impl Sync for ConnectGcpConfig
impl Unpin for ConnectGcpConfig
impl UnwindSafe for ConnectGcpConfig
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