pub struct ServiceSshKey {
pub key_id: i64,
pub name: String,
pub comment: Option<String>,
pub key_type: String,
pub public_key: String,
pub private_key: Option<Zeroizing<String>>,
pub fingerprint: String,
pub created_at: i64,
}Expand description
Wire DTO for an SSH key (decrypted view; private_key present only when
explicitly requested and authorized). Debug redacts the private key.
Fields§
§key_id: i64§name: String§comment: Option<String>§key_type: String§public_key: String§private_key: Option<Zeroizing<String>>§fingerprint: String§created_at: i64Trait Implementations§
Source§impl Clone for ServiceSshKey
impl Clone for ServiceSshKey
Source§fn clone(&self) -> ServiceSshKey
fn clone(&self) -> ServiceSshKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServiceSshKey
impl Debug for ServiceSshKey
Source§impl<'de> Deserialize<'de> for ServiceSshKey
impl<'de> Deserialize<'de> for ServiceSshKey
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 ServiceSshKey
impl RefUnwindSafe for ServiceSshKey
impl Send for ServiceSshKey
impl Sync for ServiceSshKey
impl Unpin for ServiceSshKey
impl UnsafeUnpin for ServiceSshKey
impl UnwindSafe for ServiceSshKey
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