pub struct AssignmentCommitment {
pub ty: AssignmentType,
pub state: RevealedState,
pub seal: SecretSeal,
}
Fields§
§ty: AssignmentType
§state: RevealedState
§seal: SecretSeal
Trait Implementations§
Source§impl Clone for AssignmentCommitment
impl Clone for AssignmentCommitment
Source§fn clone(&self) -> AssignmentCommitment
fn clone(&self) -> AssignmentCommitment
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 CommitEncode for AssignmentCommitment
impl CommitEncode for AssignmentCommitment
Source§type CommitmentId = MerkleHash
type CommitmentId = MerkleHash
Type of the resulting commitment.
Source§fn commit_encode(&self, e: &mut CommitEngine)
fn commit_encode(&self, e: &mut CommitEngine)
Encodes the data for the commitment by writing them directly into a
std::io::Write
writer instanceSource§impl Debug for AssignmentCommitment
impl Debug for AssignmentCommitment
Source§impl PartialEq for AssignmentCommitment
impl PartialEq for AssignmentCommitment
impl Eq for AssignmentCommitment
impl StructuralPartialEq for AssignmentCommitment
Auto Trait Implementations§
impl Freeze for AssignmentCommitment
impl RefUnwindSafe for AssignmentCommitment
impl Send for AssignmentCommitment
impl Sync for AssignmentCommitment
impl Unpin for AssignmentCommitment
impl UnwindSafe for AssignmentCommitment
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<T> CommitId for Twhere
T: CommitEncode,
impl<T> CommitId for Twhere
T: CommitEncode,
fn commit(&self) -> CommitEngine
Source§fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
Performs commitment to client-side-validated data
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.