pub struct Key {Show 16 fields
pub algorithm: Option<KeyAlgorithm>,
pub certificate: Option<String>,
pub certificate_information: Option<Box<CertificateInformation>>,
pub expiration_instant: Option<i64>,
pub has_private_key: Option<bool>,
pub id: Option<Uuid>,
pub insert_instant: Option<i64>,
pub issuer: Option<String>,
pub kid: Option<String>,
pub last_update_instant: Option<i64>,
pub length: Option<i32>,
pub name: Option<String>,
pub private_key: Option<String>,
pub public_key: Option<String>,
pub secret: Option<String>,
pub type: Option<KeyType>,
}
Expand description
Key : Domain for a public key, key pair or an HMAC secret. This is used by KeyMaster to manage keys for JWTs, SAML, etc.
Fields§
§algorithm: Option<KeyAlgorithm>
§certificate: Option<String>
§certificate_information: Option<Box<CertificateInformation>>
§expiration_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
has_private_key: Option<bool>
§id: Option<Uuid>
§insert_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
issuer: Option<String>
§kid: Option<String>
§last_update_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
length: Option<i32>
§name: Option<String>
§private_key: Option<String>
§public_key: Option<String>
§secret: Option<String>
§type: Option<KeyType>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
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 Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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