pub struct ApiKeySpec {
pub owner_id: String,
pub owner_type_deprecated: String,
pub owner_type: i32,
pub display_name: String,
pub description: String,
pub expiry_time: Option<Timestamp>,
pub disabled: bool,
}Fields§
§owner_id: StringThe id of the owner to create the API key for. The owner id is immutable. Once set during creation, it cannot be changed. The owner id is the id of the user when the owner type is user. The owner id is the id of the service account when the owner type is service account.
owner_type_deprecated: StringThe type of the owner to create the API key for. The owner type is immutable. Once set during creation, it cannot be changed. Possible values: user, service-account. Deprecated: Not supported after v0.3.0 api version. Use owner_type instead. temporal:versioning:max_version=v0.3.0
owner_type: i32The type of the owner to create the API key for. temporal:versioning:min_version=v0.3.0 temporal:enums:replaces=owner_type_deprecated
display_name: StringThe display name of the API key.
description: StringThe description of the API key.
expiry_time: Option<Timestamp>The expiry time of the API key.
disabled: boolTrue if the API key is disabled.
Implementations§
Source§impl ApiKeySpec
impl ApiKeySpec
Sourcepub fn owner_type(&self) -> OwnerType
pub fn owner_type(&self) -> OwnerType
Returns the enum value of owner_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_owner_type(&mut self, value: OwnerType)
pub fn set_owner_type(&mut self, value: OwnerType)
Sets owner_type to the provided enum value.
Trait Implementations§
Source§impl Clone for ApiKeySpec
impl Clone for ApiKeySpec
Source§fn clone(&self) -> ApiKeySpec
fn clone(&self) -> ApiKeySpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ApiKeySpec
impl Debug for ApiKeySpec
Source§impl Default for ApiKeySpec
impl Default for ApiKeySpec
Source§impl Hash for ApiKeySpec
impl Hash for ApiKeySpec
Source§impl Message for ApiKeySpec
impl Message for ApiKeySpec
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for ApiKeySpec
impl Name for ApiKeySpec
Source§const NAME: &'static str = "ApiKeySpec"
const NAME: &'static str = "ApiKeySpec"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.cloud.identity.v1"
const PACKAGE: &'static str = "temporal.api.cloud.identity.v1"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for ApiKeySpec
impl PartialEq for ApiKeySpec
impl Eq for ApiKeySpec
impl StructuralPartialEq for ApiKeySpec
Auto Trait Implementations§
impl Freeze for ApiKeySpec
impl RefUnwindSafe for ApiKeySpec
impl Send for ApiKeySpec
impl Sync for ApiKeySpec
impl Unpin for ApiKeySpec
impl UnsafeUnpin for ApiKeySpec
impl UnwindSafe for ApiKeySpec
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request