pub struct FullBlock {
pub transactions: Vec<ProcessedTransaction>,
pub previous_block_hash: Hash,
pub timestamp: u128,
pub block_height: u64,
pub bitcoin_block_height: u64,
}Fields§
§transactions: Vec<ProcessedTransaction>§previous_block_hash: Hash§timestamp: u128§block_height: u64§bitcoin_block_height: u64Implementations§
Trait Implementations§
Source§impl BorshDeserialize for FullBlock
impl BorshDeserialize for FullBlock
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for FullBlock
impl BorshSerialize for FullBlock
impl<'__de> Decode<'__de> for FullBlockwhere
'__de:,
Source§impl<'de> Deserialize<'de> for FullBlock
impl<'de> Deserialize<'de> for FullBlock
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
impl Encode for FullBlock
impl StructuralPartialEq for FullBlock
Auto Trait Implementations§
impl Freeze for FullBlock
impl RefUnwindSafe for FullBlock
impl Send for FullBlock
impl Sync for FullBlock
impl Unpin for FullBlock
impl UnsafeUnpin for FullBlock
impl UnwindSafe for FullBlock
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