Struct pgp::types::SignedUserAttribute
source · [−]pub struct SignedUserAttribute {
pub attr: UserAttribute,
pub signatures: Vec<Signature>,
}
Fields
attr: UserAttribute
signatures: Vec<Signature>
Implementations
sourceimpl 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
sourceimpl Clone for SignedUserAttribute
impl Clone for SignedUserAttribute
sourcefn clone(&self) -> SignedUserAttribute
fn clone(&self) -> SignedUserAttribute
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SignedUserAttribute
impl Debug for SignedUserAttribute
sourceimpl PartialEq<SignedUserAttribute> for SignedUserAttribute
impl PartialEq<SignedUserAttribute> for SignedUserAttribute
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SignedUserAttribute) -> bool
fn ne(&self, other: &SignedUserAttribute) -> bool
This method tests for !=
.
sourceimpl Serialize for SignedUserAttribute
impl Serialize for SignedUserAttribute
impl Eq for SignedUserAttribute
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more