pub enum KafkaOauthProvider {
Aws,
Gcp,
}Expand description
Identity provider used to mint SASL/OAUTHBEARER tokens for the Kafka broker.
Variants§
Aws
Mint an AWS Signature V4 token to authenticate to AWS Managed Streaming for Kafka (MSK).
This is the default provider, for backward compatibility. region must
be set, either directly or via the AWS_REGION environment variable.
Gcp
Mint a Google OAuth2 access token to authenticate to GCP Managed Service for Apache Kafka.
The token is obtained from Application Default Credentials: a
service account key or user credentials file (as set up by, e.g.,
gcloud auth application-default login), or, failing that, the
GKE metadata server (which supplies credentials automatically when
Workload Identity is configured).
Trait Implementations§
Source§impl Clone for KafkaOauthProvider
impl Clone for KafkaOauthProvider
Source§fn clone(&self) -> KafkaOauthProvider
fn clone(&self) -> KafkaOauthProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KafkaOauthProvider
Source§impl Debug for KafkaOauthProvider
impl Debug for KafkaOauthProvider
Source§impl Default for KafkaOauthProvider
impl Default for KafkaOauthProvider
Source§fn default() -> KafkaOauthProvider
fn default() -> KafkaOauthProvider
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KafkaOauthProvider
impl<'de> Deserialize<'de> for KafkaOauthProvider
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 Eq for KafkaOauthProvider
Source§impl PartialEq for KafkaOauthProvider
impl PartialEq for KafkaOauthProvider
Source§impl Serialize for KafkaOauthProvider
impl Serialize for KafkaOauthProvider
impl StructuralPartialEq for KafkaOauthProvider
Auto Trait Implementations§
impl Freeze for KafkaOauthProvider
impl RefUnwindSafe for KafkaOauthProvider
impl Send for KafkaOauthProvider
impl Sync for KafkaOauthProvider
impl Unpin for KafkaOauthProvider
impl UnsafeUnpin for KafkaOauthProvider
impl UnwindSafe for KafkaOauthProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.