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 (for self-signatures). If signatures is empty, this fails.
Sourcepub fn verify_third_party(
&self,
signee: &impl PublicKeyTrait,
signer: &impl PublicKeyTrait,
) -> Result<()>
pub fn verify_third_party( &self, signee: &impl PublicKeyTrait, signer: &impl PublicKeyTrait, ) -> Result<()>
Verify all signatures (for third-party 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 duplicate 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§impl Serialize for SignedUserAttribute
impl Serialize for SignedUserAttribute
impl Eq for SignedUserAttribute
impl StructuralPartialEq for SignedUserAttribute
Auto Trait Implementations§
impl Freeze for SignedUserAttribute
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