pub struct ApiKey {
pub created_at: Option<String>,
pub key: Option<String>,
pub limit: Option<Vec<String>>,
pub prefix: Option<String>,
pub type: Option<String>,
}Fields§
§created_at: Option<String>CreatedAt is when the key last changed, as IAM records it.
key: Option<String>Key is the FULL value, and is present for a publishable key only: it is public by construction and useless to its holder if it cannot be read back.
limit: Option<Vec<String>>Limit is what this key may reach, as kind:name entries — model:zen5, project:acme, product:commerce. Absent means the key reaches whatever its holder does, which is what every key minted before limits existed does and must keep doing.
prefix: Option<String>Prefix is the recognizable, non-secret head of the key — enough to tell two keys apart, never enough to use one.
type: Option<String>Type is the key class: secret (sk-) or publishable (pk-).
Implementations§
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
impl StructuralPartialEq for ApiKey
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnsafeUnpin 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