Struct rdkafka_wrap::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: StringThe token value to set.
principal_name: StringThe Kafka principal name associated with the token.
lifetime_ms: i64When the token expires, in number of milliseconds since the Unix epoch.
Auto Trait Implementations§
impl RefUnwindSafe for OAuthToken
impl Send for OAuthToken
impl Sync for OAuthToken
impl Unpin for OAuthToken
impl UnwindSafe for OAuthToken
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