Struct pgp::packet::OnePassSignature
source · pub struct OnePassSignature {
pub packet_version: Version,
pub version: u8,
pub typ: SignatureType,
pub hash_algorithm: HashAlgorithm,
pub pub_algorithm: PublicKeyAlgorithm,
pub key_id: KeyId,
pub last: u8,
}
Expand description
One-Pass Signature Packet https://tools.ietf.org/html/rfc4880.html#section-5.4
Fields§
§packet_version: Version
§version: u8
§typ: SignatureType
§hash_algorithm: HashAlgorithm
§pub_algorithm: PublicKeyAlgorithm
§key_id: KeyId
§last: u8
Implementations§
source§impl OnePassSignature
impl OnePassSignature
sourcepub fn from_slice(packet_version: Version, input: &[u8]) -> Result<Self>
pub fn from_slice(packet_version: Version, input: &[u8]) -> Result<Self>
Parses a OnePassSignature
packet from the given slice.
pub fn from_details( typ: SignatureType, hash_algorithm: HashAlgorithm, pub_algorithm: PublicKeyAlgorithm, key_id: KeyId ) -> Self
pub fn packet_version(&self) -> Version
Trait Implementations§
source§impl Clone for OnePassSignature
impl Clone for OnePassSignature
source§fn clone(&self) -> OnePassSignature
fn clone(&self) -> OnePassSignature
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 OnePassSignature
impl Debug for OnePassSignature
source§impl From<OnePassSignature> for Packet
impl From<OnePassSignature> for Packet
source§fn from(other: OnePassSignature) -> Packet
fn from(other: OnePassSignature) -> Packet
Converts to this type from the input type.
source§impl PacketTrait for OnePassSignature
impl PacketTrait for OnePassSignature
source§impl PartialEq for OnePassSignature
impl PartialEq for OnePassSignature
source§fn eq(&self, other: &OnePassSignature) -> bool
fn eq(&self, other: &OnePassSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for OnePassSignature
impl Serialize for OnePassSignature
source§impl TryFrom<Packet> for OnePassSignature
impl TryFrom<Packet> for OnePassSignature
impl Eq for OnePassSignature
impl StructuralPartialEq for OnePassSignature
Auto Trait Implementations§
impl RefUnwindSafe for OnePassSignature
impl Send for OnePassSignature
impl Sync for OnePassSignature
impl Unpin for OnePassSignature
impl UnwindSafe for OnePassSignature
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