Struct kafka_protocol::messages::create_delegation_token_request::CreateDelegationTokenRequest
source · #[non_exhaustive]pub struct CreateDelegationTokenRequest {
pub owner_principal_type: Option<StrBytes>,
pub owner_principal_name: Option<StrBytes>,
pub renewers: Vec<CreatableRenewers>,
pub max_lifetime_ms: i64,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}Expand description
Valid versions: 0-3
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.owner_principal_type: Option<StrBytes>The principal type of the owner of the token. If it’s null it defaults to the token request principal.
Supported API versions: 3
owner_principal_name: Option<StrBytes>The principal name of the owner of the token. If it’s null it defaults to the token request principal.
Supported API versions: 3
renewers: Vec<CreatableRenewers>A list of those who are allowed to renew this token before it expires.
Supported API versions: 0-3
max_lifetime_ms: i64The maximum lifetime of the token in milliseconds, or -1 to use the server side default.
Supported API versions: 0-3
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl CreateDelegationTokenRequest
impl CreateDelegationTokenRequest
sourcepub fn with_owner_principal_type(self, value: Option<StrBytes>) -> Self
pub fn with_owner_principal_type(self, value: Option<StrBytes>) -> Self
Sets owner_principal_type to the passed value.
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 with_owner_principal_name(self, value: Option<StrBytes>) -> Self
pub fn with_owner_principal_name(self, value: Option<StrBytes>) -> Self
Sets owner_principal_name to the passed value.
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 with_renewers(self, value: Vec<CreatableRenewers>) -> Self
pub fn with_renewers(self, value: Vec<CreatableRenewers>) -> Self
Sets renewers to the passed value.
A list of those who are allowed to renew this token before it expires.
Supported API versions: 0-3
sourcepub fn with_max_lifetime_ms(self, value: i64) -> Self
pub fn with_max_lifetime_ms(self, value: i64) -> Self
Sets max_lifetime_ms to the passed value.
The maximum lifetime of the token in milliseconds, or -1 to use the server side default.
Supported API versions: 0-3
sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
source§impl Clone for CreateDelegationTokenRequest
impl Clone for CreateDelegationTokenRequest
source§fn clone(&self) -> CreateDelegationTokenRequest
fn clone(&self) -> CreateDelegationTokenRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateDelegationTokenRequest
impl Debug for CreateDelegationTokenRequest
source§impl From<CreateDelegationTokenRequest> for RequestKind
impl From<CreateDelegationTokenRequest> for RequestKind
source§fn from(value: CreateDelegationTokenRequest) -> RequestKind
fn from(value: CreateDelegationTokenRequest) -> RequestKind
source§impl HeaderVersion for CreateDelegationTokenRequest
impl HeaderVersion for CreateDelegationTokenRequest
source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
source§impl Message for CreateDelegationTokenRequest
impl Message for CreateDelegationTokenRequest
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = _
const DEPRECATED_VERSIONS: Option<VersionRange> = _
source§impl PartialEq for CreateDelegationTokenRequest
impl PartialEq for CreateDelegationTokenRequest
source§fn eq(&self, other: &CreateDelegationTokenRequest) -> bool
fn eq(&self, other: &CreateDelegationTokenRequest) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateDelegationTokenRequest
Auto Trait Implementations§
impl !Freeze for CreateDelegationTokenRequest
impl RefUnwindSafe for CreateDelegationTokenRequest
impl Send for CreateDelegationTokenRequest
impl Sync for CreateDelegationTokenRequest
impl Unpin for CreateDelegationTokenRequest
impl UnwindSafe for CreateDelegationTokenRequest
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
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)
clone_to_uninit)