pub struct AddSmartcardKeyConstrained {
pub key: SmartcardKey,
pub constraints: Vec<KeyConstraint>,
}
Expand description
Add a key in a hardware token to an agent, with constraints on it’s use.
This structure is sent in a Request::AddSmartcardKeyConstrained
(SSH_AGENTC_ADD_SMARTCARD_KEY_CONSTRAINED
) message.
This is a variant of Request::AddSmartcardKey
with a set of KeyConstraint
s attached.
Described in draft-miller-ssh-agent-14 § 3.2.6
Fields§
§key: SmartcardKey
A key stored on a hardware token.
constraints: Vec<KeyConstraint>
Constraints to be placed on the key
.
Trait Implementations§
Source§impl Clone for AddSmartcardKeyConstrained
impl Clone for AddSmartcardKeyConstrained
Source§fn clone(&self) -> AddSmartcardKeyConstrained
fn clone(&self) -> AddSmartcardKeyConstrained
Returns a copy 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 AddSmartcardKeyConstrained
impl Debug for AddSmartcardKeyConstrained
Source§impl Decode for AddSmartcardKeyConstrained
impl Decode for AddSmartcardKeyConstrained
Source§impl Encode for AddSmartcardKeyConstrained
impl Encode for AddSmartcardKeyConstrained
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 AddSmartcardKeyConstrained
Auto Trait Implementations§
impl Freeze for AddSmartcardKeyConstrained
impl RefUnwindSafe for AddSmartcardKeyConstrained
impl Send for AddSmartcardKeyConstrained
impl Sync for AddSmartcardKeyConstrained
impl Unpin for AddSmartcardKeyConstrained
impl UnwindSafe for AddSmartcardKeyConstrained
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