pub struct BlockData {
pub slot: u64,
pub blockhash: String,
pub parent_slot: u64,
pub parent_blockhash: String,
pub block_time: Option<i64>,
pub block_height: Option<u64>,
pub transaction_count: u64,
pub raw: Value,
}Expand description
Block-level data passed to Plugin::on_block.
Contains both extracted fields and the full raw JSON response so plugins can access any field the framework doesn’t extract.
Fields§
§slot: u64§blockhash: String§parent_slot: u64§parent_blockhash: String§block_time: Option<i64>§block_height: Option<u64>§transaction_count: u64§raw: ValueTrait Implementations§
Source§impl<'de> Deserialize<'de> for BlockData
impl<'de> Deserialize<'de> for BlockData
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 BlockData
impl RefUnwindSafe for BlockData
impl Send for BlockData
impl Sync for BlockData
impl Unpin for BlockData
impl UnsafeUnpin for BlockData
impl UnwindSafe for BlockData
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