pub struct DescribeDelegationTokenOptions { /* private fields */ }Expand description
Options for Admin::describe_delegation_token.
Corresponds to
org.apache.kafka.clients.admin.DescribeDelegationTokenOptions.
Implementations§
Source§impl DescribeDelegationTokenOptions
impl DescribeDelegationTokenOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates default options (default API timeout, describe all authorized tokens).
Sourcepub fn set_owners(self, owners: Option<Vec<KafkaPrincipal>>) -> Self
pub fn set_owners(self, owners: Option<Vec<KafkaPrincipal>>) -> Self
Sets the owners to describe delegation tokens for.
If owners is None, all the user-owned tokens and tokens where the user
has Describe permission will be returned.
Mirrors DescribeDelegationTokenOptions.owners.
Sourcepub fn owners(&self) -> Option<&[KafkaPrincipal]>
pub fn owners(&self) -> Option<&[KafkaPrincipal]>
The owners to describe delegation tokens for, or None for all
authorized tokens.
Mirrors DescribeDelegationTokenOptions.owners.
Sourcepub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
pub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
Set the timeout in milliseconds for this operation, or None to use the
default API timeout for the AdminClient.
Sourcepub fn timeout_ms(&self) -> Option<i32>
pub fn timeout_ms(&self) -> Option<i32>
The timeout in milliseconds for this operation, or None if the default
API timeout should be used.
Trait Implementations§
Source§impl Clone for DescribeDelegationTokenOptions
impl Clone for DescribeDelegationTokenOptions
Source§fn clone(&self) -> DescribeDelegationTokenOptions
fn clone(&self) -> DescribeDelegationTokenOptions
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 Default for DescribeDelegationTokenOptions
impl Default for DescribeDelegationTokenOptions
Source§fn default() -> DescribeDelegationTokenOptions
fn default() -> DescribeDelegationTokenOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for DescribeDelegationTokenOptions
impl PartialEq for DescribeDelegationTokenOptions
Source§fn eq(&self, other: &DescribeDelegationTokenOptions) -> bool
fn eq(&self, other: &DescribeDelegationTokenOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DescribeDelegationTokenOptions
impl StructuralPartialEq for DescribeDelegationTokenOptions
Auto Trait Implementations§
impl Freeze for DescribeDelegationTokenOptions
impl RefUnwindSafe for DescribeDelegationTokenOptions
impl Send for DescribeDelegationTokenOptions
impl Sync for DescribeDelegationTokenOptions
impl Unpin for DescribeDelegationTokenOptions
impl UnsafeUnpin for DescribeDelegationTokenOptions
impl UnwindSafe for DescribeDelegationTokenOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more