pub struct PublicKeyEntity {
pub id: Option<i64>,
pub title: Option<String>,
pub user_id: Option<i64>,
pub username: Option<String>,
pub fingerprint: Option<String>,
pub fingerprint_sha256: Option<String>,
pub created_at: Option<String>,
pub last_login_at: Option<String>,
pub status: Option<String>,
pub generated_private_key: Option<String>,
pub generated_public_key: Option<String>,
}
Expand description
Represents a public SSH key in Files.com
Fields§
§id: Option<i64>
Public key ID
title: Option<String>
Public key title
user_id: Option<i64>
User ID this public key is associated with
username: Option<String>
Username of the user this public key is associated with
fingerprint: Option<String>
Public key fingerprint (MD5)
fingerprint_sha256: Option<String>
Public key fingerprint (SHA256)
created_at: Option<String>
Public key created at date/time
last_login_at: Option<String>
Key’s most recent login time via SFTP
status: Option<String>
Only returned when generating keys. Can be invalid, not_generated, generating, complete
generated_private_key: Option<String>
Only returned when generating keys. Private key generated for the user
generated_public_key: Option<String>
Only returned when generating keys. Public key generated for the user
Trait Implementations§
Source§impl Clone for PublicKeyEntity
impl Clone for PublicKeyEntity
Source§fn clone(&self) -> PublicKeyEntity
fn clone(&self) -> PublicKeyEntity
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 PublicKeyEntity
impl Debug for PublicKeyEntity
Source§impl<'de> Deserialize<'de> for PublicKeyEntity
impl<'de> Deserialize<'de> for PublicKeyEntity
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 PublicKeyEntity
impl RefUnwindSafe for PublicKeyEntity
impl Send for PublicKeyEntity
impl Sync for PublicKeyEntity
impl Unpin for PublicKeyEntity
impl UnwindSafe for PublicKeyEntity
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