pub struct FreshResolution {
pub document: DidDocument,
pub fresh: bool,
}Expand description
Result of WebResolver::resolve_until: the best document the
resolver could obtain, and whether it is fresh for the operation
(fetched from the network at or after the operation’s start).
Fields§
§document: DidDocumentThe document the caller should evaluate.
fresh: booltrue when document was fetched at or after the caller’s
since instant — i.e. a verdict against it is final per
RFC-ACDP-0001 §5.11 “Caching”. false only when the document is
an older cached copy that the caller’s predicate rejected and a
forced re-fetch was refused by the per-DID rate limit.
Trait Implementations§
Source§impl Clone for FreshResolution
impl Clone for FreshResolution
Auto Trait Implementations§
impl Freeze for FreshResolution
impl RefUnwindSafe for FreshResolution
impl Send for FreshResolution
impl Sync for FreshResolution
impl Unpin for FreshResolution
impl UnsafeUnpin for FreshResolution
impl UnwindSafe for FreshResolution
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