pub struct DelegationRef {
pub epoch: u64,
pub delegation_hash: [u8; 32],
}Expand description
DelegationRef = epoch u64 ‖ delegation_hash bytes[32], where delegation_hash is
SHA3-256 of the delegation’s canonical bytes (not its signature).
Fields§
§epoch: u64The delegation’s epoch.
delegation_hash: [u8; 32]SHA3-256(delegation bytes).
Trait Implementations§
Source§impl Clone for DelegationRef
impl Clone for DelegationRef
Source§fn clone(&self) -> DelegationRef
fn clone(&self) -> DelegationRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DelegationRef
Source§impl Debug for DelegationRef
impl Debug for DelegationRef
Source§impl Decode for DelegationRef
impl Decode for DelegationRef
Source§impl Encode for DelegationRef
impl Encode for DelegationRef
impl Eq for DelegationRef
Source§impl Hash for DelegationRef
impl Hash for DelegationRef
Source§impl PartialEq for DelegationRef
impl PartialEq for DelegationRef
impl StructuralPartialEq for DelegationRef
Auto Trait Implementations§
impl Freeze for DelegationRef
impl RefUnwindSafe for DelegationRef
impl Send for DelegationRef
impl Sync for DelegationRef
impl Unpin for DelegationRef
impl UnsafeUnpin for DelegationRef
impl UnwindSafe for DelegationRef
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