pub struct GetLatestBlockhash {
pub blockhash: String,
pub last_valid_block_height: u64,
}Fields§
§blockhash: String§last_valid_block_height: u64Implementations§
Source§impl GetLatestBlockhash
impl GetLatestBlockhash
pub async fn process( commitment: Commitment, ) -> PoseidonResult<RpcResponseWithResult<GetLatestBlockhash>>
pub fn get_hash( response: RpcResponseWithResult<GetLatestBlockhash>, ) -> GetLatestBlockhash
pub async fn as_bytes(commitment: Commitment) -> PoseidonResult<[u8; 32]>
pub fn to_bytes(&self) -> PoseidonResult<[u8; 32]>
Trait Implementations§
Source§impl BorshSerialize for GetLatestBlockhash
impl BorshSerialize for GetLatestBlockhash
Source§impl Debug for GetLatestBlockhash
impl Debug for GetLatestBlockhash
Source§impl<'de> Deserialize<'de> for GetLatestBlockhash
impl<'de> Deserialize<'de> for GetLatestBlockhash
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 GetLatestBlockhash
impl RefUnwindSafe for GetLatestBlockhash
impl Send for GetLatestBlockhash
impl Sync for GetLatestBlockhash
impl Unpin for GetLatestBlockhash
impl UnwindSafe for GetLatestBlockhash
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