#[non_exhaustive]pub struct SshPublicKey {
pub key: String,
pub expiration_time_usec: i64,
pub fingerprint: String,
pub name: String,
/* private fields */
}Expand description
The SSH public key information associated with a Google account.
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.key: StringPublic key text in SSH format, defined by RFC4253 section 6.6.
expiration_time_usec: i64An expiration time in microseconds since epoch.
fingerprint: StringOutput only. The SHA-256 fingerprint of the SSH public key.
name: StringOutput only. The canonical resource name.
Implementations§
Source§impl SshPublicKey
impl SshPublicKey
pub fn new() -> Self
Sourcepub fn set_expiration_time_usec<T: Into<i64>>(self, v: T) -> Self
pub fn set_expiration_time_usec<T: Into<i64>>(self, v: T) -> Self
Sets the value of expiration_time_usec.
§Example
ⓘ
let x = SshPublicKey::new().set_expiration_time_usec(42);Sourcepub fn set_fingerprint<T: Into<String>>(self, v: T) -> Self
pub fn set_fingerprint<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SshPublicKey
impl Clone for SshPublicKey
Source§fn clone(&self) -> SshPublicKey
fn clone(&self) -> SshPublicKey
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 SshPublicKey
impl Debug for SshPublicKey
Source§impl Default for SshPublicKey
impl Default for SshPublicKey
Source§fn default() -> SshPublicKey
fn default() -> SshPublicKey
Returns the “default value” for a type. Read more
Source§impl Message for SshPublicKey
impl Message for SshPublicKey
Source§impl PartialEq for SshPublicKey
impl PartialEq for SshPublicKey
impl StructuralPartialEq for SshPublicKey
Auto Trait Implementations§
impl Freeze for SshPublicKey
impl RefUnwindSafe for SshPublicKey
impl Send for SshPublicKey
impl Sync for SshPublicKey
impl Unpin for SshPublicKey
impl UnwindSafe for SshPublicKey
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