pub enum DidDocument<'a> {
Cached(&'a Value),
Refreshed(&'a Value),
}Expand description
A resolved DID Document and whether it may come from a cache.
Variants§
Cached(&'a Value)
A document that may be cached, such as one from
jmap_did_resolver::Resolver::resolve.
Refreshed(&'a Value)
A document resolved again after a DidAuthRejection::RefreshRequired,
or one that is never cached, such as a document derived from a
did:key.
Trait Implementations§
Source§impl<'a> Clone for DidDocument<'a>
impl<'a> Clone for DidDocument<'a>
impl<'a> Copy for DidDocument<'a>
Source§impl<'a> Debug for DidDocument<'a>
impl<'a> Debug for DidDocument<'a>
Source§impl<'a> PartialEq for DidDocument<'a>
impl<'a> PartialEq for DidDocument<'a>
impl<'a> StructuralPartialEq for DidDocument<'a>
Auto Trait Implementations§
impl<'a> Forget for DidDocument<'a>
impl<'a> Freeze for DidDocument<'a>
impl<'a> Move for DidDocument<'a>
impl<'a> RefUnwindSafe for DidDocument<'a>
impl<'a> Send for DidDocument<'a>
impl<'a> Sync for DidDocument<'a>
impl<'a> Unpin for DidDocument<'a>
impl<'a> UnsafeUnpin for DidDocument<'a>
impl<'a> UnwindSafe for DidDocument<'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