#[non_exhaustive]pub struct DescribedDelegationToken {
pub principal_type: StrBytes,
pub principal_name: StrBytes,
pub token_requester_principal_type: StrBytes,
pub token_requester_principal_name: StrBytes,
pub issue_timestamp: i64,
pub expiry_timestamp: i64,
pub max_timestamp: i64,
pub token_id: StrBytes,
pub hmac: Bytes,
pub renewers: Vec<DescribedDelegationTokenRenewer>,
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.principal_type: StrBytesThe token principal type.
Supported API versions: 0-3
principal_name: StrBytesThe token principal name.
Supported API versions: 0-3
token_requester_principal_type: StrBytesThe principal type of the requester of the token.
Supported API versions: 3
token_requester_principal_name: StrBytesThe principal type of the requester of the token.
Supported API versions: 3
issue_timestamp: i64The token issue timestamp in milliseconds.
Supported API versions: 0-3
expiry_timestamp: i64The token expiry timestamp in milliseconds.
Supported API versions: 0-3
max_timestamp: i64The token maximum timestamp length in milliseconds.
Supported API versions: 0-3
token_id: StrBytesThe token ID.
Supported API versions: 0-3
hmac: BytesThe token HMAC.
Supported API versions: 0-3
renewers: Vec<DescribedDelegationTokenRenewer>Those who are able to renew this token before it expires.
Supported API versions: 0-3
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
Source§impl DescribedDelegationToken
impl DescribedDelegationToken
Sourcepub fn with_principal_type(self, value: StrBytes) -> Self
pub fn with_principal_type(self, value: StrBytes) -> Self
Sets principal_type to the passed value.
The token principal type.
Supported API versions: 0-3
Sourcepub fn with_principal_name(self, value: StrBytes) -> Self
pub fn with_principal_name(self, value: StrBytes) -> Self
Sets principal_name to the passed value.
The token principal name.
Supported API versions: 0-3
Sourcepub fn with_token_requester_principal_type(self, value: StrBytes) -> Self
pub fn with_token_requester_principal_type(self, value: StrBytes) -> Self
Sets token_requester_principal_type to the passed value.
The principal type of the requester of the token.
Supported API versions: 3
Sourcepub fn with_token_requester_principal_name(self, value: StrBytes) -> Self
pub fn with_token_requester_principal_name(self, value: StrBytes) -> Self
Sets token_requester_principal_name to the passed value.
The principal type of the requester of the token.
Supported API versions: 3
Sourcepub fn with_issue_timestamp(self, value: i64) -> Self
pub fn with_issue_timestamp(self, value: i64) -> Self
Sets issue_timestamp to the passed value.
The token issue timestamp in milliseconds.
Supported API versions: 0-3
Sourcepub fn with_expiry_timestamp(self, value: i64) -> Self
pub fn with_expiry_timestamp(self, value: i64) -> Self
Sets expiry_timestamp to the passed value.
The token expiry timestamp in milliseconds.
Supported API versions: 0-3
Sourcepub fn with_max_timestamp(self, value: i64) -> Self
pub fn with_max_timestamp(self, value: i64) -> Self
Sets max_timestamp to the passed value.
The token maximum timestamp length in milliseconds.
Supported API versions: 0-3
Sourcepub fn with_token_id(self, value: StrBytes) -> Self
pub fn with_token_id(self, value: StrBytes) -> Self
Sets token_id to the passed value.
The token ID.
Supported API versions: 0-3
Sourcepub fn with_hmac(self, value: Bytes) -> Self
pub fn with_hmac(self, value: Bytes) -> Self
Sets hmac to the passed value.
The token HMAC.
Supported API versions: 0-3
Sourcepub fn with_renewers(self, value: Vec<DescribedDelegationTokenRenewer>) -> Self
pub fn with_renewers(self, value: Vec<DescribedDelegationTokenRenewer>) -> Self
Sets renewers to the passed value.
Those who are able to renew this token before it expires.
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 DescribedDelegationToken
impl Clone for DescribedDelegationToken
Source§fn clone(&self) -> DescribedDelegationToken
fn clone(&self) -> DescribedDelegationToken
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DescribedDelegationToken
impl Debug for DescribedDelegationToken
Source§impl Decodable for DescribedDelegationToken
Available on crate feature client only.
impl Decodable for DescribedDelegationToken
client only.Source§impl Default for DescribedDelegationToken
impl Default for DescribedDelegationToken
Source§impl Encodable for DescribedDelegationToken
Available on crate feature broker only.
impl Encodable for DescribedDelegationToken
broker only.