pub struct VerifiedIdentity<'a>(/* private fields */);Expand description
A peer’s identity, which has been verified.
Implementations§
Source§impl<'a> VerifiedIdentity<'a>
impl<'a> VerifiedIdentity<'a>
Sourcepub fn assertion(identity: Identity<'a>) -> Self
pub fn assertion(identity: Identity<'a>) -> Self
Make a VerifiedIdentity, noting that identity has been verified somehow.
Sourcepub fn into_owned(self) -> VerifiedIdentity<'static>
pub fn into_owned(self) -> VerifiedIdentity<'static>
Convert the value into an owned one.
This is a straight move if the value is already owned.
Methods from Deref<Target = Identity<'a>>§
Sourcepub fn as_signer(&self) -> SignerPublicKey<'_>
pub fn as_signer(&self) -> SignerPublicKey<'_>
Get the public key of this identity as a SignerPublicKey.
Trait Implementations§
Source§impl<'a> Clone for VerifiedIdentity<'a>
impl<'a> Clone for VerifiedIdentity<'a>
Source§fn clone(&self) -> VerifiedIdentity<'a>
fn clone(&self) -> VerifiedIdentity<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for VerifiedIdentity<'a>
impl<'a> Debug for VerifiedIdentity<'a>
Source§impl<'a> Deref for VerifiedIdentity<'a>
impl<'a> Deref for VerifiedIdentity<'a>
impl<'a> Eq for VerifiedIdentity<'a>
Source§impl<'a> From<VerifiedIdentity<'a>> for Identity<'a>
impl<'a> From<VerifiedIdentity<'a>> for Identity<'a>
Source§fn from(val: VerifiedIdentity<'a>) -> Self
fn from(val: VerifiedIdentity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for VerifiedIdentity<'a>
impl<'a> Hash for VerifiedIdentity<'a>
Source§impl<'a> PartialEq for VerifiedIdentity<'a>
impl<'a> PartialEq for VerifiedIdentity<'a>
Source§impl PartialEq<Identity<'_>> for VerifiedIdentity<'_>
impl PartialEq<Identity<'_>> for VerifiedIdentity<'_>
impl<'a> StructuralPartialEq for VerifiedIdentity<'a>
Auto Trait Implementations§
impl<'a> Freeze for VerifiedIdentity<'a>
impl<'a> RefUnwindSafe for VerifiedIdentity<'a>
impl<'a> Send for VerifiedIdentity<'a>
impl<'a> Sync for VerifiedIdentity<'a>
impl<'a> Unpin for VerifiedIdentity<'a>
impl<'a> UnsafeUnpin for VerifiedIdentity<'a>
impl<'a> UnwindSafe for VerifiedIdentity<'a>
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