pub struct AuthorizedKey {
pub key_type: String,
pub key_data: String,
pub key_bytes: Vec<u8>,
pub comment: Option<String>,
pub options: Vec<String>,
}Expand description
An authorized key parsed from an authorized_keys file.
Fields§
§key_type: StringThe key type (e.g., “ssh-ed25519”, “ssh-rsa”).
key_data: StringThe base64-encoded key data.
key_bytes: Vec<u8>The decoded key bytes.
comment: Option<String>Optional comment (usually email or identifier).
options: Vec<String>Optional key options (e.g., “command=”, “no-pty”).
Implementations§
Source§impl AuthorizedKey
impl AuthorizedKey
Trait Implementations§
Source§impl Clone for AuthorizedKey
impl Clone for AuthorizedKey
Source§fn clone(&self) -> AuthorizedKey
fn clone(&self) -> AuthorizedKey
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 moreAuto Trait Implementations§
impl Freeze for AuthorizedKey
impl RefUnwindSafe for AuthorizedKey
impl Send for AuthorizedKey
impl Sync for AuthorizedKey
impl Unpin for AuthorizedKey
impl UnwindSafe for AuthorizedKey
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