pub struct AddIdentityConstrained {
pub identity: AddIdentity,
pub constraints: Vec<KeyConstraint>,
}
Expand description
Add a key to an agent, with constraints on it’s use.
This structure is sent in a Request::AddIdConstrained
(SSH_AGENTC_ADD_ID_CONSTRAINED
) message.
This is a variant of Request::AddIdentity
with a set of KeyConstraint
s attached.
Described in draft-miller-ssh-agent-14 § 3.2
Fields§
§identity: AddIdentity
The credential to be added to the agent.
constraints: Vec<KeyConstraint>
Constraints to be placed on the identity
.
Trait Implementations§
Source§impl Clone for AddIdentityConstrained
impl Clone for AddIdentityConstrained
Source§fn clone(&self) -> AddIdentityConstrained
fn clone(&self) -> AddIdentityConstrained
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 AddIdentityConstrained
impl Debug for AddIdentityConstrained
Source§impl Decode for AddIdentityConstrained
impl Decode for AddIdentityConstrained
Source§impl Encode for AddIdentityConstrained
impl Encode for AddIdentityConstrained
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
.Source§impl PartialEq for AddIdentityConstrained
impl PartialEq for AddIdentityConstrained
impl StructuralPartialEq for AddIdentityConstrained
Auto Trait Implementations§
impl Freeze for AddIdentityConstrained
impl RefUnwindSafe for AddIdentityConstrained
impl Send for AddIdentityConstrained
impl Sync for AddIdentityConstrained
impl Unpin for AddIdentityConstrained
impl UnwindSafe for AddIdentityConstrained
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