pub struct BlockDto {
pub protocol_version: u8,
pub parents: Vec<String>,
pub payload: Option<PayloadDto>,
pub nonce: String,
}Expand description
The block object that nodes gossip around in the network.
Fields
protocol_version: u8parents: Vec<String>payload: Option<PayloadDto>nonce: StringTrait Implementations
sourceimpl<'de> Deserialize<'de> for BlockDto
impl<'de> Deserialize<'de> for BlockDto
sourcefn 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
impl Eq for BlockDto
impl StructuralEq for BlockDto
impl StructuralPartialEq for BlockDto
Auto Trait Implementations
impl RefUnwindSafe for BlockDto
impl Send for BlockDto
impl Sync for BlockDto
impl Unpin for BlockDto
impl UnwindSafe for BlockDto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more