pub struct DescribeDelegationTokenOptions { /* private fields */ }Expand description
Options for Admin::describe_delegation_token.
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
Sourcepub fn owners(&self) -> Option<&[KafkaPrincipal]>
pub fn owners(&self) -> Option<&[KafkaPrincipal]>
Returns the owners to describe delegation tokens for, or None for all authorized tokens.
Sourcepub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
pub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
Sourcepub fn timeout_ms(&self) -> Option<i32>
pub fn timeout_ms(&self) -> Option<i32>
Returns the timeout in milliseconds for this operation, or None if the
default API timeout for the AdminClient 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
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