pub struct AdminApiKey {
pub id: String,
pub name: String,
pub redacted_value: String,
pub value: Option<String>,
pub created_at: u64,
pub last_used_at: Option<u64>,
pub owner: AdminApiKeyOwner,
}
Expand description
Represents an individual Admin API key in an org.
Fields§
§id: String
The identifier, which can be referenced in API endpoints
name: String
The name of the API key
redacted_value: String
The redacted value of the API key
value: Option<String>
The value of the API key. Only shown on create.
created_at: u64
The Unix timestamp (in seconds) of when the API key was created
last_used_at: Option<u64>
The Unix timestamp (in seconds) of when the API key was last used
owner: AdminApiKeyOwner
Implementations§
Source§impl AdminApiKey
impl AdminApiKey
Sourcepub fn builder() -> AdminApiKeyBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> AdminApiKeyBuilder<((), (), (), (), (), (), ())>
Create a builder for building AdminApiKey
.
On the builder, call .id(...)
, .name(...)
, .redacted_value(...)
, .value(...)
(optional), .created_at(...)
, .last_used_at(...)
(optional), .owner(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of AdminApiKey
.
Trait Implementations§
Source§impl Clone for AdminApiKey
impl Clone for AdminApiKey
Source§fn clone(&self) -> AdminApiKey
fn clone(&self) -> AdminApiKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AdminApiKey
impl Debug for AdminApiKey
Source§impl<'de> Deserialize<'de> for AdminApiKey
impl<'de> Deserialize<'de> for AdminApiKey
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AdminApiKey
impl PartialEq for AdminApiKey
Source§impl Serialize for AdminApiKey
impl Serialize for AdminApiKey
impl StructuralPartialEq for AdminApiKey
Auto Trait Implementations§
impl Freeze for AdminApiKey
impl RefUnwindSafe for AdminApiKey
impl Send for AdminApiKey
impl Sync for AdminApiKey
impl Unpin for AdminApiKey
impl UnwindSafe for AdminApiKey
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
Mutably borrows from an owned value. Read more