pub struct EncodedConfirmedBlock {
pub previous_blockhash: String,
pub blockhash: String,
pub parent_slot: u64,
pub transactions: Vec<EncodedTransactionWithStatusMeta>,
pub rewards: Rewards,
pub num_partitions: Option<u64>,
pub block_time: Option<i64>,
pub block_height: Option<u64>,
}
Fields§
§previous_blockhash: String
§blockhash: String
§parent_slot: u64
§transactions: Vec<EncodedTransactionWithStatusMeta>
§rewards: Rewards
§num_partitions: Option<u64>
§block_time: Option<i64>
§block_height: Option<u64>
Trait Implementations§
Source§impl Debug for EncodedConfirmedBlock
impl Debug for EncodedConfirmedBlock
Source§impl<'de> Deserialize<'de> for EncodedConfirmedBlock
impl<'de> Deserialize<'de> for EncodedConfirmedBlock
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
Source§impl From<UiConfirmedBlock> for EncodedConfirmedBlock
impl From<UiConfirmedBlock> for EncodedConfirmedBlock
Source§fn from(block: UiConfirmedBlock) -> Self
fn from(block: UiConfirmedBlock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncodedConfirmedBlock
impl PartialEq for EncodedConfirmedBlock
Source§impl Serialize for EncodedConfirmedBlock
impl Serialize for EncodedConfirmedBlock
impl StructuralPartialEq for EncodedConfirmedBlock
Auto Trait Implementations§
impl Freeze for EncodedConfirmedBlock
impl RefUnwindSafe for EncodedConfirmedBlock
impl Send for EncodedConfirmedBlock
impl Sync for EncodedConfirmedBlock
impl Unpin for EncodedConfirmedBlock
impl UnwindSafe for EncodedConfirmedBlock
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more