pub struct KeyDeleteParams {
pub name: String,
pub remove_public: bool,
pub remove_certificate: bool,
pub remove_from_agent: bool,
pub remove_from_config: bool,
pub backup: bool,
}Expand description
Parameters for deleting an SSH key.
Fields§
§name: StringFile name identifying the key.
remove_public: boolRemove the .pub companion file.
remove_certificate: boolRemove the -cert.pub certificate file.
remove_from_agent: boolRemove the key from the SSH agent.
remove_from_config: boolRemove IdentityFile references from ~/.ssh/config.
backup: boolCreate a backup before deletion.
Trait Implementations§
Source§impl Clone for KeyDeleteParams
impl Clone for KeyDeleteParams
Source§fn clone(&self) -> KeyDeleteParams
fn clone(&self) -> KeyDeleteParams
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 KeyDeleteParams
impl Debug for KeyDeleteParams
Source§impl<'de> Deserialize<'de> for KeyDeleteParams
impl<'de> Deserialize<'de> for KeyDeleteParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyDeleteParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyDeleteParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for KeyDeleteParams
impl Serialize for KeyDeleteParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for KeyDeleteParams
impl RefUnwindSafe for KeyDeleteParams
impl Send for KeyDeleteParams
impl Sync for KeyDeleteParams
impl Unpin for KeyDeleteParams
impl UnsafeUnpin for KeyDeleteParams
impl UnwindSafe for KeyDeleteParams
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