#[non_exhaustive]pub struct CreateSSHKeyRequest {
pub parent: String,
pub ssh_key: Option<SSHKey>,
pub ssh_key_id: String,
/* private fields */
}Expand description
Message for registering a public SSH key in a project.
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.parent: StringRequired. The parent containing the SSH keys.
ssh_key: Option<SSHKey>Required. The SSH key to register.
ssh_key_id: StringRequired. The ID to use for the key, which will become the final component of the key’s resource name.
This value must match the regex: [a-zA-Z0-9@.-_]{1,64}
Implementations§
Source§impl CreateSSHKeyRequest
impl CreateSSHKeyRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_ssh_key<T>(self, v: T) -> Self
pub fn set_ssh_key<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_ssh_key<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ssh_key<T>(self, v: Option<T>) -> Self
Sourcepub fn set_ssh_key_id<T: Into<String>>(self, v: T) -> Self
pub fn set_ssh_key_id<T: Into<String>>(self, v: T) -> Self
Sets the value of ssh_key_id.
§Example
ⓘ
let x = CreateSSHKeyRequest::new().set_ssh_key_id("example");Trait Implementations§
Source§impl Clone for CreateSSHKeyRequest
impl Clone for CreateSSHKeyRequest
Source§fn clone(&self) -> CreateSSHKeyRequest
fn clone(&self) -> CreateSSHKeyRequest
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 CreateSSHKeyRequest
impl Debug for CreateSSHKeyRequest
Source§impl Default for CreateSSHKeyRequest
impl Default for CreateSSHKeyRequest
Source§fn default() -> CreateSSHKeyRequest
fn default() -> CreateSSHKeyRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateSSHKeyRequest
impl Message for CreateSSHKeyRequest
Source§impl PartialEq for CreateSSHKeyRequest
impl PartialEq for CreateSSHKeyRequest
impl StructuralPartialEq for CreateSSHKeyRequest
Auto Trait Implementations§
impl Freeze for CreateSSHKeyRequest
impl RefUnwindSafe for CreateSSHKeyRequest
impl Send for CreateSSHKeyRequest
impl Sync for CreateSSHKeyRequest
impl Unpin for CreateSSHKeyRequest
impl UnwindSafe for CreateSSHKeyRequest
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