pub struct ApiCredential {
pub api_id: String,
pub api_key: Option<String>,
pub expiration_ts: Option<DateTime<Utc>>,
pub active: Option<bool>,
pub created_date: Option<DateTime<Utc>>,
}
Expand description
Represents API credentials
Fields§
§api_id: String
Unique API credential ID
api_key: Option<String>
API key (only shown when first created) - automatically redacted in debug output
expiration_ts: Option<DateTime<Utc>>
Expiration date of the credentials
active: Option<bool>
Whether the credentials are active
created_date: Option<DateTime<Utc>>
Creation date
Trait Implementations§
Source§impl Clone for ApiCredential
impl Clone for ApiCredential
Source§fn clone(&self) -> ApiCredential
fn clone(&self) -> ApiCredential
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 ApiCredential
Custom Debug implementation for ApiCredential that redacts sensitive information
impl Debug for ApiCredential
Custom Debug implementation for ApiCredential that redacts sensitive information
Source§impl<'de> Deserialize<'de> for ApiCredential
impl<'de> Deserialize<'de> for ApiCredential
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 ApiCredential
impl RefUnwindSafe for ApiCredential
impl Send for ApiCredential
impl Sync for ApiCredential
impl Unpin for ApiCredential
impl UnwindSafe for ApiCredential
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