#[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 Decodable for CreateDelegationTokenRequest
Available on crate feature broker only.
impl Decodable for CreateDelegationTokenRequest
broker only.Source§impl Encodable for CreateDelegationTokenRequest
Available on crate feature client only.
impl Encodable for CreateDelegationTokenRequest
client only.Source§impl From<CreateDelegationTokenRequest> for RequestKind
Available on crate feature messages_enums only.
impl From<CreateDelegationTokenRequest> for RequestKind
messages_enums only.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 ==.Source§impl Request for CreateDelegationTokenRequest
Available on crate features client and broker only.
impl Request for CreateDelegationTokenRequest
client and broker only.