pub struct SignedObject<O: SignableObject> { /* private fields */ }
Implementations§
source§impl<O> SignedObject<O>
impl<O> SignedObject<O>
pub fn inner(&self) -> &O
pub fn signer(&self) -> &Verifier
pub fn from_keypair(keypair: &DidKeyPair, inner: O) -> Result<Self, Error>
pub fn from_key(key: &SecretKey, inner: O) -> Result<Self, Error>
pub fn new(signer: Signer, inner: O) -> Result<Self, Error>
pub fn verify_with_key(self, key: &PublicKey) -> Result<O, Error>
pub async fn verify( self, did_resolver: &dyn DidResolver, verifier: Option<&Verifier>, ) -> Result<(Verifier, O), Error>
Trait Implementations§
source§impl<O: Clone + SignableObject> Clone for SignedObject<O>
impl<O: Clone + SignableObject> Clone for SignedObject<O>
source§fn clone(&self) -> SignedObject<O>
fn clone(&self) -> SignedObject<O>
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<O: Debug + SignableObject> Debug for SignedObject<O>
impl<O: Debug + SignableObject> Debug for SignedObject<O>
source§impl<'de, O> Deserialize<'de> for SignedObject<O>where
O: Deserialize<'de> + SignableObject,
impl<'de, O> Deserialize<'de> for SignedObject<O>where
O: Deserialize<'de> + SignableObject,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<O> Hashable for SignedObject<O>
impl<O> Hashable for SignedObject<O>
source§impl<O> Indexable for SignedObject<O>
impl<O> Indexable for SignedObject<O>
const PRIMARY_KEY: &'static str = O::PRIMARY_KEY
const DEFAULT_SORT: &'static str = O::DEFAULT_SORT
fn primary_key(&self) -> Vec<u8> ⓘ
fn secondary_keys(&self) -> Index
source§impl<O: Ord + SignableObject> Ord for SignedObject<O>
impl<O: Ord + SignableObject> Ord for SignedObject<O>
source§fn cmp(&self, other: &SignedObject<O>) -> Ordering
fn cmp(&self, other: &SignedObject<O>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<O: PartialEq + SignableObject> PartialEq for SignedObject<O>
impl<O: PartialEq + SignableObject> PartialEq for SignedObject<O>
source§impl<O: PartialOrd + SignableObject> PartialOrd for SignedObject<O>
impl<O: PartialOrd + SignableObject> PartialOrd for SignedObject<O>
source§impl<O> Serialize for SignedObject<O>where
O: Serialize + SignableObject,
impl<O> Serialize for SignedObject<O>where
O: Serialize + SignableObject,
impl<O: Eq + SignableObject> Eq for SignedObject<O>
impl<O: SignableObject> StructuralPartialEq for SignedObject<O>
Auto Trait Implementations§
impl<O> Freeze for SignedObject<O>where
O: Freeze,
impl<O> RefUnwindSafe for SignedObject<O>where
O: RefUnwindSafe,
impl<O> Send for SignedObject<O>where
O: Send,
impl<O> Sync for SignedObject<O>where
O: Sync,
impl<O> Unpin for SignedObject<O>where
O: Unpin,
impl<O> UnwindSafe for SignedObject<O>where
O: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.