pub struct CreateKeyOption {
pub key: String,
pub read_only: Option<bool>,
pub title: String,
}
Expand description
CreateKeyOption : CreateKeyOption options when creating a key
Fields§
§key: String
An armored SSH key to add
read_only: Option<bool>
Describe if the key has only read access or read/write
title: String
Title of the key to add
Implementations§
Source§impl CreateKeyOption
impl CreateKeyOption
Sourcepub fn new(key: String, title: String) -> CreateKeyOption
pub fn new(key: String, title: String) -> CreateKeyOption
CreateKeyOption options when creating a key
Trait Implementations§
Source§impl Clone for CreateKeyOption
impl Clone for CreateKeyOption
Source§fn clone(&self) -> CreateKeyOption
fn clone(&self) -> CreateKeyOption
Returns a copy 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 CreateKeyOption
impl Debug for CreateKeyOption
Source§impl Default for CreateKeyOption
impl Default for CreateKeyOption
Source§fn default() -> CreateKeyOption
fn default() -> CreateKeyOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateKeyOption
impl<'de> Deserialize<'de> for CreateKeyOption
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
Source§impl PartialEq for CreateKeyOption
impl PartialEq for CreateKeyOption
Source§impl Serialize for CreateKeyOption
impl Serialize for CreateKeyOption
impl StructuralPartialEq for CreateKeyOption
Auto Trait Implementations§
impl Freeze for CreateKeyOption
impl RefUnwindSafe for CreateKeyOption
impl Send for CreateKeyOption
impl Sync for CreateKeyOption
impl Unpin for CreateKeyOption
impl UnwindSafe for CreateKeyOption
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