pub struct AuthorityHash {
pub name: String,
pub hash: [u8; 32],
}Expand description
A named, frozen authority digest a stage was built/validated against.
Fields§
§name: String§hash: [u8; 32]32-byte SHA-256 of the frozen authority’s canonical bytes.
Implementations§
Trait Implementations§
Source§impl Clone for AuthorityHash
impl Clone for AuthorityHash
Source§fn clone(&self) -> AuthorityHash
fn clone(&self) -> AuthorityHash
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 moreSource§impl Debug for AuthorityHash
impl Debug for AuthorityHash
Source§impl<'de> Deserialize<'de> for AuthorityHash
impl<'de> Deserialize<'de> for AuthorityHash
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AuthorityHash
impl PartialEq for AuthorityHash
Source§fn eq(&self, other: &AuthorityHash) -> bool
fn eq(&self, other: &AuthorityHash) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthorityHash
impl Serialize for AuthorityHash
impl Eq for AuthorityHash
impl StructuralPartialEq for AuthorityHash
Auto Trait Implementations§
impl Freeze for AuthorityHash
impl RefUnwindSafe for AuthorityHash
impl Send for AuthorityHash
impl Sync for AuthorityHash
impl Unpin for AuthorityHash
impl UnsafeUnpin for AuthorityHash
impl UnwindSafe for AuthorityHash
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