pub struct ApiKey {
pub id: ApiKeyID,
pub name: String,
pub description: Option<String>,
pub key: String,
pub status: ApiKeyStatus,
pub permissions: Vec<String>,
pub expires_at: Option<DateTime<Utc>>,
pub last_used_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}
Expand description
ApiKey entity
Fields§
§id: ApiKeyID
Unique Paddle ID for this API key entity, prefixed with apikey_.
name: String
Short name of this API key. Typically unique and human-identifiable.
description: Option<String>
Short description of this API key. Typically gives details about what the API key is used for and where it’s used.
key: String
An obfuscated version of this API key, prefixed with pdl_
and containing _apikey_
.
status: ApiKeyStatus
Status of this API key.
permissions: Vec<String>
Permissions assigned to this API key. Determines what actions the API key can perform.
expires_at: Option<DateTime<Utc>>
Datetime of when this API key expires.
last_used_at: Option<DateTime<Utc>>
Datetime of when this API key was last used (accurate to within 1 hour). null if never used.
created_at: DateTime<Utc>
Datetime of when this entity was created. Set automatically by Paddle.
updated_at: DateTime<Utc>
Datetime of when this entity was updated. Set automatically by Paddle.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiKey
impl<'de> Deserialize<'de> for ApiKey
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
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnwindSafe for ApiKey
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