pub struct KeySpec {
pub keyblob: KeyData,
pub is_ca: bool,
}Expand description
Public key specification.
This structure is included in DestinationConstraint,
which in turn is used in the RestrictDestination key
constraint extension.
Note: This is an OpenSSH-specific extension to the agent protocol.
Described in OpenSSH PROTOCOL.agent § 2
Fields§
§keyblob: KeyDataThe public parts of the key.
is_ca: boolFlag indicating if this key is for a CA.
Trait Implementations§
Source§impl Encode for KeySpec
impl Encode for KeySpec
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer.Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix.Source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32 length prefix
set to Encode::encoded_len.impl StructuralPartialEq for KeySpec
Auto Trait Implementations§
impl Freeze for KeySpec
impl RefUnwindSafe for KeySpec
impl Send for KeySpec
impl Sync for KeySpec
impl Unpin for KeySpec
impl UnwindSafe for KeySpec
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