Struct tendermint::block::Block
source[−]#[non_exhaustive]pub struct Block {
pub header: Header,
pub data: Vec<Vec<u8>>,
pub evidence: Data,
pub last_commit: Option<Commit>,
}
Expand description
Blocks consist of a header, transactions, votes (the commit), and a list of evidence of malfeasance (i.e. signing conflicting votes).
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.header: Header
Block header
data: Vec<Vec<u8>>
Transaction data
evidence: Data
Evidence of malfeasance
last_commit: Option<Commit>
Last commit
Implementations
constructor
Get data
Get last commit
Trait Implementations
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
Encode into a buffer in Protobuf format. Read more
Encode with a length-delimiter to a buffer in Protobuf format. Read more
Constructor that attempts to decode an instance from a buffer. Read more
Constructor that attempts to decode a length-delimited instance from the buffer. Read more
Returns the encoded length of the message without a length delimiter. Read more
Encodes into a Protobuf-encoded Vec<u8>
.
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8>
(or equivalent). Read more
Encode with a length-delimiter to a Vec<u8>
Protobuf-encoded message.
Auto Trait Implementations
impl RefUnwindSafe for Block
impl UnwindSafe for Block
Blanket Implementations
Mutably borrows from an owned value. Read more