pub struct VerifyOptions { /* private fields */ }Expand description
The options for verify_log: a version query, the versionId seen
before for this DID, and the limits.
Implementations§
Source§impl VerifyOptions
impl VerifyOptions
Sourcepub fn with_query(self, query: Query) -> Self
pub fn with_query(self, query: Query) -> Self
Resolve the version query names.
Sourcepub fn with_limits(self, limits: Limits) -> Self
pub fn with_limits(self, limits: Limits) -> Self
Use these limits.
Sourcepub fn with_seen_version_id(self, seen: &str) -> Result<Self>
pub fn with_seen_version_id(self, seen: &str) -> Result<Self>
The latest versionId seen for this DID before. The log must still contain it, so a log rolled back or forked since is refused.
Errors when seen is not a did:webvh versionId.
Sourcepub fn seen_version_id(&self) -> Option<&str>
pub fn seen_version_id(&self) -> Option<&str>
The versionId seen before, if any.
Sourcepub fn from_json(value: &Value) -> Result<Self>
pub fn from_json(value: &Value) -> Result<Self>
Options from a JSON object with at most one of versionId (a
string), versionTime (a string) and versionNumber (a whole
number), and optionally seenVersionId and limits (see
Limits::from_json). A null member counts as absent.
Trait Implementations§
Source§impl Clone for VerifyOptions
impl Clone for VerifyOptions
Source§impl Debug for VerifyOptions
impl Debug for VerifyOptions
Source§impl Default for VerifyOptions
impl Default for VerifyOptions
impl Eq for VerifyOptions
Source§impl PartialEq for VerifyOptions
impl PartialEq for VerifyOptions
impl StructuralPartialEq for VerifyOptions
Auto Trait Implementations§
impl Forget for VerifyOptions
impl Freeze for VerifyOptions
impl Move for VerifyOptions
impl RefUnwindSafe for VerifyOptions
impl Send for VerifyOptionswhere
RawVecInner: Send,
impl Sync for VerifyOptionswhere
RawVecInner: Sync,
impl Unpin for VerifyOptions
impl UnsafeUnpin for VerifyOptions
impl UnwindSafe for VerifyOptionswhere
RawVecInner: 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§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.