pub struct SshKeyCredential<E = ()> {
pub key_type: String,
pub private_key: B64Url,
pub key_comment: Option<String>,
pub creation_date: Option<EditableField<EditableFieldDate, E>>,
pub expiry_date: Option<EditableField<EditableFieldDate, E>>,
pub key_generation_source: Option<EditableField<EditableFieldString, E>>,
}Expand description
An SshKeyCredential represents an SSH (Secure Shell) key pair.
Fields§
§key_type: StringThe type of SSH key algorithm used. Common values include “ssh-rsa”, “ssh-ed25519”, or “ecdsa-sha2-nistp256”. This MUST be a string value representing a valid SSH public key algorithm as defined in IANA SSH Protocol Parameters.
private_key: B64UrlThe private part of the SSH key pair. This MUST be a PKCS#8 ASN.1 DER formatted byte string which is then Base64url encoded.
key_comment: Option<String>This member contains a user-defined string to identify or describe the key.
creation_date: Option<EditableField<EditableFieldDate, E>>This member indicates when the key was created.
expiry_date: Option<EditableField<EditableFieldDate, E>>This member indicates when the key will expire, if applicable.
key_generation_source: Option<EditableField<EditableFieldString, E>>This member indicates where the key was originally generated. E.g.,
https://github.com/settings/ssh/new for GitHub.
Trait Implementations§
Source§impl<E: Clone> Clone for SshKeyCredential<E>
impl<E: Clone> Clone for SshKeyCredential<E>
Source§fn clone(&self) -> SshKeyCredential<E>
fn clone(&self) -> SshKeyCredential<E>
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<E: Debug> Debug for SshKeyCredential<E>
impl<E: Debug> Debug for SshKeyCredential<E>
Source§impl<'de, E> Deserialize<'de> for SshKeyCredential<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for SshKeyCredential<E>where
E: Deserialize<'de>,
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
Auto Trait Implementations§
impl<E> Freeze for SshKeyCredential<E>
impl<E> RefUnwindSafe for SshKeyCredential<E>where
E: RefUnwindSafe,
impl<E> Send for SshKeyCredential<E>where
E: Send,
impl<E> Sync for SshKeyCredential<E>where
E: Sync,
impl<E> Unpin for SshKeyCredential<E>where
E: Unpin,
impl<E> UnwindSafe for SshKeyCredential<E>where
E: UnwindSafe,
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