Struct rdkafka::client::OAuthToken

source ·
pub struct OAuthToken {
    pub token: String,
    pub principal_name: String,
    pub lifetime_ms: i64,
}
Expand description

A generated OAuth token and its associated metadata.

When using the OAUTHBEARER SASL authentication method, this type is returned from ClientContext::generate_oauth_token. The token and principal name must not contain embedded null characters.

Specifying SASL extensions is not currently supported.

Fields§

§token: String

The token value to set.

§principal_name: String

The Kafka principal name associated with the token.

§lifetime_ms: i64

When the token expires, in number of milliseconds since the Unix epoch.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.