#[non_exhaustive]pub struct AddPublicKeyRequest {
pub environment: String,
pub key: String,
/* private fields */
}
Expand description
Request message for AddPublicKey.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.environment: String
Environment this key should be added to, e.g.
users/me/environments/default
.
key: String
Key that should be added to the environment. Supported formats are
ssh-dss
(see RFC4253), ssh-rsa
(see RFC4253), ecdsa-sha2-nistp256
(see RFC5656), ecdsa-sha2-nistp384
(see RFC5656) and
ecdsa-sha2-nistp521
(see RFC5656). It should be structured as
<format> <content>, where <content> part is encoded with
Base64.
Implementations§
Trait Implementations§
Source§impl Clone for AddPublicKeyRequest
impl Clone for AddPublicKeyRequest
Source§fn clone(&self) -> AddPublicKeyRequest
fn clone(&self) -> AddPublicKeyRequest
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 AddPublicKeyRequest
impl Debug for AddPublicKeyRequest
Source§impl Default for AddPublicKeyRequest
impl Default for AddPublicKeyRequest
Source§fn default() -> AddPublicKeyRequest
fn default() -> AddPublicKeyRequest
Returns the “default value” for a type. Read more
Source§impl Message for AddPublicKeyRequest
impl Message for AddPublicKeyRequest
Source§impl PartialEq for AddPublicKeyRequest
impl PartialEq for AddPublicKeyRequest
impl StructuralPartialEq for AddPublicKeyRequest
Auto Trait Implementations§
impl Freeze for AddPublicKeyRequest
impl RefUnwindSafe for AddPublicKeyRequest
impl Send for AddPublicKeyRequest
impl Sync for AddPublicKeyRequest
impl Unpin for AddPublicKeyRequest
impl UnwindSafe for AddPublicKeyRequest
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