Struct kafka_protocol::messages::create_delegation_token_request::CreateDelegationTokenRequestBuilder
source · pub struct CreateDelegationTokenRequestBuilder { /* private fields */ }
Expand description
Builder for CreateDelegationTokenRequest
.
Implementations§
source§impl CreateDelegationTokenRequestBuilder
impl CreateDelegationTokenRequestBuilder
sourcepub fn owner_principal_type(&mut self, value: Option<StrBytes>) -> &mut Self
pub fn owner_principal_type(&mut self, value: Option<StrBytes>) -> &mut Self
The principal type of the owner of the token. If it’s null it defaults to the token request principal.
Supported API versions: 3
sourcepub fn owner_principal_name(&mut self, value: Option<StrBytes>) -> &mut Self
pub fn owner_principal_name(&mut self, value: Option<StrBytes>) -> &mut Self
The principal name of the owner of the token. If it’s null it defaults to the token request principal.
Supported API versions: 3
sourcepub fn renewers(&mut self, value: Vec<CreatableRenewers>) -> &mut Self
pub fn renewers(&mut self, value: Vec<CreatableRenewers>) -> &mut Self
A list of those who are allowed to renew this token before it expires.
Supported API versions: 0-3
sourcepub fn max_lifetime_ms(&mut self, value: i64) -> &mut Self
pub fn max_lifetime_ms(&mut self, value: i64) -> &mut Self
The maximum lifetime of the token in milliseconds, or -1 to use the server side default.
Supported API versions: 0-3
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Bytes>,
) -> &mut Self
pub fn unknown_tagged_fields( &mut self, value: BTreeMap<i32, Bytes>, ) -> &mut Self
Other tagged fields
sourcepub fn build(
&self,
) -> Result<CreateDelegationTokenRequest, CreateDelegationTokenRequestBuilderError>
pub fn build( &self, ) -> Result<CreateDelegationTokenRequest, CreateDelegationTokenRequestBuilderError>
Trait Implementations§
source§impl Clone for CreateDelegationTokenRequestBuilder
impl Clone for CreateDelegationTokenRequestBuilder
source§fn clone(&self) -> CreateDelegationTokenRequestBuilder
fn clone(&self) -> CreateDelegationTokenRequestBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl !Freeze for CreateDelegationTokenRequestBuilder
impl RefUnwindSafe for CreateDelegationTokenRequestBuilder
impl Send for CreateDelegationTokenRequestBuilder
impl Sync for CreateDelegationTokenRequestBuilder
impl Unpin for CreateDelegationTokenRequestBuilder
impl UnwindSafe for CreateDelegationTokenRequestBuilder
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)