pub struct VerifiedOperation(/* private fields */);
Expand description
Provably verified operation, which can be constructed only by running [Codex::verify
] method.
Implementations§
Source§impl VerifiedOperation
impl VerifiedOperation
Sourcepub fn opid(&self) -> Opid
pub fn opid(&self) -> Opid
Get the operation id.
The method uses cached value, thus running it is inexpensive.
Sourcepub fn as_operation(&self) -> &Operation
pub fn as_operation(&self) -> &Operation
Return a reference for the verified operation data.
Sourcepub fn into_operation(self) -> Operation
pub fn into_operation(self) -> Operation
Release the operation, discarding the verification status and cached opid.
Trait Implementations§
Source§impl Clone for VerifiedOperation
impl Clone for VerifiedOperation
Source§fn clone(&self) -> VerifiedOperation
fn clone(&self) -> VerifiedOperation
Returns a duplicate 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 Debug for VerifiedOperation
impl Debug for VerifiedOperation
Source§impl Ord for VerifiedOperation
impl Ord for VerifiedOperation
Source§fn cmp(&self, other: &VerifiedOperation) -> Ordering
fn cmp(&self, other: &VerifiedOperation) -> 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 PartialEq for VerifiedOperation
impl PartialEq for VerifiedOperation
Source§impl PartialOrd for VerifiedOperation
impl PartialOrd for VerifiedOperation
impl Eq for VerifiedOperation
Auto Trait Implementations§
impl Freeze for VerifiedOperation
impl RefUnwindSafe for VerifiedOperation
impl Send for VerifiedOperation
impl Sync for VerifiedOperation
impl Unpin for VerifiedOperation
impl UnwindSafe for VerifiedOperation
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> 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.