Struct pgp::types::SignedUserAttribute
source · pub struct SignedUserAttribute {
pub attr: UserAttribute,
pub signatures: Vec<Signature>,
}
Fields§
§attr: UserAttribute
§signatures: Vec<Signature>
Implementations§
source§impl SignedUserAttribute
impl SignedUserAttribute
pub fn new(attr: UserAttribute, signatures: Vec<Signature>) -> Self
sourcepub fn verify(&self, key: &impl PublicKeyTrait) -> Result<()>
pub fn verify(&self, key: &impl PublicKeyTrait) -> Result<()>
Verify all signatures. If signatures is empty, this fails.
Trait Implementations§
source§impl Clone for SignedUserAttribute
impl Clone for SignedUserAttribute
source§fn clone(&self) -> SignedUserAttribute
fn clone(&self) -> SignedUserAttribute
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 SignedUserAttribute
impl Debug for SignedUserAttribute
source§impl PartialEq for SignedUserAttribute
impl PartialEq for SignedUserAttribute
source§fn eq(&self, other: &SignedUserAttribute) -> bool
fn eq(&self, other: &SignedUserAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SignedUserAttribute
impl Serialize for SignedUserAttribute
impl Eq for SignedUserAttribute
impl StructuralPartialEq for SignedUserAttribute
Auto Trait Implementations§
impl RefUnwindSafe for SignedUserAttribute
impl Send for SignedUserAttribute
impl Sync for SignedUserAttribute
impl Unpin for SignedUserAttribute
impl UnwindSafe for SignedUserAttribute
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