pub struct ProjectApiKey {
pub redacted_value: String,
pub name: String,
pub created_at: i64,
pub last_used_at: i64,
pub id: String,
pub owner: ProjectApiKeyOwner,
}
Expand description
Represents an individual API key in a project.
Fields§
§redacted_value: String
The redacted value of the API key
name: String
The name of the API key
created_at: i64
The Unix timestamp (in seconds) of when the API key was created
last_used_at: i64
The Unix timestamp (in seconds) of when the API key was last used.
id: String
The identifier, which can be referenced in API endpoints
owner: ProjectApiKeyOwner
Implementations§
Source§impl ProjectApiKey
impl ProjectApiKey
Sourcepub fn builder() -> ProjectApiKeyBuilder<((), (), (), (), (), ())>
pub fn builder() -> ProjectApiKeyBuilder<((), (), (), (), (), ())>
Create a builder for building ProjectApiKey
.
On the builder, call .redacted_value(...)
, .name(...)
, .created_at(...)
, .last_used_at(...)
, .id(...)
, .owner(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ProjectApiKey
.
Trait Implementations§
Source§impl Clone for ProjectApiKey
impl Clone for ProjectApiKey
Source§fn clone(&self) -> ProjectApiKey
fn clone(&self) -> ProjectApiKey
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProjectApiKey
impl Debug for ProjectApiKey
Source§impl<'de> Deserialize<'de> for ProjectApiKey
impl<'de> Deserialize<'de> for ProjectApiKey
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 ProjectApiKey
impl PartialEq for ProjectApiKey
Source§impl Serialize for ProjectApiKey
impl Serialize for ProjectApiKey
impl StructuralPartialEq for ProjectApiKey
Auto Trait Implementations§
impl Freeze for ProjectApiKey
impl RefUnwindSafe for ProjectApiKey
impl Send for ProjectApiKey
impl Sync for ProjectApiKey
impl Unpin for ProjectApiKey
impl UnwindSafe for ProjectApiKey
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