pub struct AddIdentity {
pub credential: Credential,
}
Expand description
Add a key to an agent.
This structure is sent in a Request::AddIdentity
(SSH_AGENTC_ADD_IDENTITY
) message.
Described in draft-miller-ssh-agent-14 § 3.2
Fields§
§credential: Credential
A credential (private & public key, or private key / certificate) to add to the agent
Trait Implementations§
Source§impl Clone for AddIdentity
impl Clone for AddIdentity
Source§fn clone(&self) -> AddIdentity
fn clone(&self) -> AddIdentity
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 AddIdentity
impl Debug for AddIdentity
Source§impl Decode for AddIdentity
impl Decode for AddIdentity
Source§impl Encode for AddIdentity
impl Encode for AddIdentity
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 AddIdentity
impl PartialEq for AddIdentity
impl StructuralPartialEq for AddIdentity
Auto Trait Implementations§
impl Freeze for AddIdentity
impl RefUnwindSafe for AddIdentity
impl Send for AddIdentity
impl Sync for AddIdentity
impl Unpin for AddIdentity
impl UnwindSafe for AddIdentity
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