pub struct ReplaceSshKeyRequest {
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
}
Expand description
ReplaceSshKeyRequest : Request for PUT https://api.hetzner.cloud/v1/ssh_keys/{id}
Fields§
§labels: Option<HashMap<String, String>>
User-defined labels (key-value pairs)
name: Option<String>
New name Name to set
Implementations§
source§impl ReplaceSshKeyRequest
impl ReplaceSshKeyRequest
sourcepub fn new() -> ReplaceSshKeyRequest
pub fn new() -> ReplaceSshKeyRequest
Request for PUT https://api.hetzner.cloud/v1/ssh_keys/{id}
Trait Implementations§
source§impl Clone for ReplaceSshKeyRequest
impl Clone for ReplaceSshKeyRequest
source§fn clone(&self) -> ReplaceSshKeyRequest
fn clone(&self) -> ReplaceSshKeyRequest
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 ReplaceSshKeyRequest
impl Debug for ReplaceSshKeyRequest
source§impl Default for ReplaceSshKeyRequest
impl Default for ReplaceSshKeyRequest
source§fn default() -> ReplaceSshKeyRequest
fn default() -> ReplaceSshKeyRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ReplaceSshKeyRequest
impl<'de> Deserialize<'de> for ReplaceSshKeyRequest
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 ReplaceSshKeyRequest
impl PartialEq for ReplaceSshKeyRequest
source§fn eq(&self, other: &ReplaceSshKeyRequest) -> bool
fn eq(&self, other: &ReplaceSshKeyRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReplaceSshKeyRequest
impl Serialize for ReplaceSshKeyRequest
impl StructuralPartialEq for ReplaceSshKeyRequest
Auto Trait Implementations§
impl RefUnwindSafe for ReplaceSshKeyRequest
impl Send for ReplaceSshKeyRequest
impl Sync for ReplaceSshKeyRequest
impl Unpin for ReplaceSshKeyRequest
impl UnwindSafe for ReplaceSshKeyRequest
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