pub struct SshKey {
pub id: SshKeyId,
pub user_id: UserId,
pub title: String,
pub key_type: SshKeyType,
pub public_key: String,
pub fingerprint: String,
pub created_at: u64,
pub last_used_at: Option<u64>,
}Expand description
An SSH public key for authentication.
Fields§
§id: SshKeyIdUnique key ID.
user_id: UserIdUser who owns this key.
title: StringUser-provided title/name.
key_type: SshKeyTypeKey type (ed25519, rsa, ecdsa).
public_key: StringFull public key string.
fingerprint: StringSHA256 fingerprint.
created_at: u64When the key was added.
last_used_at: Option<u64>Last time the key was used.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SshKey
impl<'de> Deserialize<'de> for SshKey
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 SshKey
impl RefUnwindSafe for SshKey
impl Send for SshKey
impl Sync for SshKey
impl Unpin for SshKey
impl UnsafeUnpin for SshKey
impl UnwindSafe for SshKey
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