pub struct GeneratedApiKey {
pub key_id: String,
pub full_key: String,
pub service_id: ServiceId,
pub expires_at: u64,
pub default_headers: BTreeMap<String, String>,
}Expand description
Generated API Key containing both public and secret parts
Fields§
§key_id: StringPublic key identifier
full_key: StringFull API key (key_id + secret)
service_id: ServiceIdService ID this key is for
expires_at: u64Expiration timestamp
default_headers: BTreeMap<String, String>Default headers
Implementations§
Trait Implementations§
Source§impl Clone for GeneratedApiKey
impl Clone for GeneratedApiKey
Source§fn clone(&self) -> GeneratedApiKey
fn clone(&self) -> GeneratedApiKey
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 GeneratedApiKey
impl Debug for GeneratedApiKey
Source§impl From<&GeneratedApiKey> for ApiKeyModel
impl From<&GeneratedApiKey> for ApiKeyModel
Source§fn from(key: &GeneratedApiKey) -> Self
fn from(key: &GeneratedApiKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GeneratedApiKey
impl RefUnwindSafe for GeneratedApiKey
impl Send for GeneratedApiKey
impl Sync for GeneratedApiKey
impl Unpin for GeneratedApiKey
impl UnwindSafe for GeneratedApiKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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