Struct kafka_protocol::messages::create_delegation_token_response::CreateDelegationTokenResponse
source · #[non_exhaustive]pub struct CreateDelegationTokenResponse {
pub error_code: i16,
pub principal_type: StrBytes,
pub principal_name: StrBytes,
pub token_requester_principal_type: StrBytes,
pub token_requester_principal_name: StrBytes,
pub issue_timestamp_ms: i64,
pub expiry_timestamp_ms: i64,
pub max_timestamp_ms: i64,
pub token_id: StrBytes,
pub hmac: Bytes,
pub throttle_time_ms: i32,
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.error_code: i16
The top-level error, or zero if there was no error.
Supported API versions: 0-3
principal_type: StrBytes
The principal type of the token owner.
Supported API versions: 0-3
principal_name: StrBytes
The name of the token owner.
Supported API versions: 0-3
token_requester_principal_type: StrBytes
The principal type of the requester of the token.
Supported API versions: 3
token_requester_principal_name: StrBytes
The principal type of the requester of the token.
Supported API versions: 3
issue_timestamp_ms: i64
When this token was generated.
Supported API versions: 0-3
expiry_timestamp_ms: i64
When this token expires.
Supported API versions: 0-3
max_timestamp_ms: i64
The maximum lifetime of this token.
Supported API versions: 0-3
token_id: StrBytes
The token UUID.
Supported API versions: 0-3
hmac: Bytes
HMAC of the delegation token.
Supported API versions: 0-3
throttle_time_ms: i32
The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota.
Supported API versions: 0-3
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Trait Implementations§
source§impl Builder for CreateDelegationTokenResponse
impl Builder for CreateDelegationTokenResponse
§type Builder = CreateDelegationTokenResponseBuilder
type Builder = CreateDelegationTokenResponseBuilder
derive_builder::Builder
type for this protocol item.source§impl Clone for CreateDelegationTokenResponse
impl Clone for CreateDelegationTokenResponse
source§fn clone(&self) -> CreateDelegationTokenResponse
fn clone(&self) -> CreateDelegationTokenResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Encodable for CreateDelegationTokenResponse
impl Encodable for CreateDelegationTokenResponse
source§fn encode<B: ByteBufMut>(
&self,
buf: &mut B,
version: i16,
) -> Result<(), EncodeError>
fn encode<B: ByteBufMut>( &self, buf: &mut B, version: i16, ) -> Result<(), EncodeError>
source§fn compute_size(&self, version: i16) -> Result<usize, EncodeError>
fn compute_size(&self, version: i16) -> Result<usize, EncodeError>
source§impl HeaderVersion for CreateDelegationTokenResponse
impl HeaderVersion for CreateDelegationTokenResponse
source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
source§impl Message for CreateDelegationTokenResponse
impl Message for CreateDelegationTokenResponse
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for CreateDelegationTokenResponse
impl PartialEq for CreateDelegationTokenResponse
source§fn eq(&self, other: &CreateDelegationTokenResponse) -> bool
fn eq(&self, other: &CreateDelegationTokenResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateDelegationTokenResponse
Auto Trait Implementations§
impl !Freeze for CreateDelegationTokenResponse
impl RefUnwindSafe for CreateDelegationTokenResponse
impl Send for CreateDelegationTokenResponse
impl Sync for CreateDelegationTokenResponse
impl Unpin for CreateDelegationTokenResponse
impl UnwindSafe for CreateDelegationTokenResponse
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
)