pub struct Block {
pub height: u64,
pub hash: String,
pub previous_hash: String,
pub timestamp: DateTime<Utc>,
pub proposer: String,
pub transactions: Vec<Value>,
pub commit_signatures: Vec<String>,
}
Expand description
Block data structure
Fields§
§height: u64
§hash: String
§previous_hash: String
§timestamp: DateTime<Utc>
§proposer: String
§transactions: Vec<Value>
§commit_signatures: Vec<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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