pub struct HeaderBody {
pub block_number: u64,
pub slot: u64,
pub prev_hash: Option<Hash<32>>,
pub issuer_vkey: Bytes,
pub vrf_vkey: Bytes,
pub vrf_result: VrfCert,
pub block_body_size: u64,
pub block_body_hash: Hash<32>,
pub operational_cert: OperationalCert,
pub protocol_version: (u64, u64),
}Fields§
§block_number: u64§slot: u64§prev_hash: Option<Hash<32>>§issuer_vkey: Bytes§vrf_vkey: Bytes§vrf_result: VrfCert§block_body_size: u64§block_body_hash: Hash<32>§operational_cert: OperationalCert§protocol_version: (u64, u64)Implementations§
Source§impl HeaderBody
impl HeaderBody
pub fn leader_vrf_output(&self) -> Vec<u8> ⓘ
pub fn nonce_vrf_output(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for HeaderBody
impl Clone for HeaderBody
Source§fn clone(&self) -> HeaderBody
fn clone(&self) -> HeaderBody
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 HeaderBody
impl Debug for HeaderBody
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for HeaderBody
impl<'bytes, Ctx> Decode<'bytes, Ctx> for HeaderBody
Source§impl<'de> Deserialize<'de> for HeaderBody
impl<'de> Deserialize<'de> for HeaderBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HeaderBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HeaderBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Ctx> Encode<Ctx> for HeaderBody
impl<Ctx> Encode<Ctx> for HeaderBody
Source§impl<'a> From<KeepRaw<'a, HeaderBody>> for HeaderBody
impl<'a> From<KeepRaw<'a, HeaderBody>> for HeaderBody
Source§fn from(x: KeepRaw<'a, HeaderBody>) -> HeaderBody
fn from(x: KeepRaw<'a, HeaderBody>) -> HeaderBody
Converts to this type from the input type.
Source§impl PartialEq for HeaderBody
impl PartialEq for HeaderBody
Source§impl Serialize for HeaderBody
impl Serialize for HeaderBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for HeaderBody
impl StructuralPartialEq for HeaderBody
Auto Trait Implementations§
impl Freeze for HeaderBody
impl RefUnwindSafe for HeaderBody
impl Send for HeaderBody
impl Sync for HeaderBody
impl Unpin for HeaderBody
impl UnsafeUnpin for HeaderBody
impl UnwindSafe for HeaderBody
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more