pub struct GetBlockHashReturn {
pub block_hash: [u8; 32],
}Available on crate feature
abigen only.Expand description
Container type for all return fields from the getBlockHash function with signature getBlockHash(uint256) and selector 0xee82ac5e
Fields§
§block_hash: [u8; 32]Trait Implementations§
source§impl AbiDecode for GetBlockHashReturn
impl AbiDecode for GetBlockHashReturn
source§impl AbiEncode for GetBlockHashReturn
impl AbiEncode for GetBlockHashReturn
source§impl AbiType for GetBlockHashReturn
impl AbiType for GetBlockHashReturn
source§fn param_type() -> ParamType
fn param_type() -> ParamType
The native ABI type this type represents.
source§impl Clone for GetBlockHashReturn
impl Clone for GetBlockHashReturn
source§fn clone(&self) -> GetBlockHashReturn
fn clone(&self) -> GetBlockHashReturn
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GetBlockHashReturn
impl Debug for GetBlockHashReturn
source§impl Default for GetBlockHashReturn
impl Default for GetBlockHashReturn
source§fn default() -> GetBlockHashReturn
fn default() -> GetBlockHashReturn
Returns the “default value” for a type. Read more
source§impl Hash for GetBlockHashReturn
impl Hash for GetBlockHashReturn
source§impl PartialEq<GetBlockHashReturn> for GetBlockHashReturn
impl PartialEq<GetBlockHashReturn> for GetBlockHashReturn
source§fn eq(&self, other: &GetBlockHashReturn) -> bool
fn eq(&self, other: &GetBlockHashReturn) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Tokenizable for GetBlockHashReturnwhere
[u8; 32]: Tokenize,
impl Tokenizable for GetBlockHashReturnwhere [u8; 32]: Tokenize,
source§fn from_token(token: Token) -> Result<Self, InvalidOutputType>where
Self: Sized,
fn from_token(token: Token) -> Result<Self, InvalidOutputType>where Self: Sized,
Converts a
Token into expected type.source§fn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.
impl AbiArrayType for GetBlockHashReturn
impl Eq for GetBlockHashReturn
impl StructuralEq for GetBlockHashReturn
impl StructuralPartialEq for GetBlockHashReturn
impl TokenizableItem for GetBlockHashReturnwhere [u8; 32]: Tokenize,
Auto Trait Implementations§
impl RefUnwindSafe for GetBlockHashReturn
impl Send for GetBlockHashReturn
impl Sync for GetBlockHashReturn
impl Unpin for GetBlockHashReturn
impl UnwindSafe for GetBlockHashReturn
Blanket Implementations§
source§impl<T> Detokenize for Twhere
T: Tokenizable,
impl<T> Detokenize for Twhere T: Tokenizable,
source§fn from_tokens(tokens: Vec<Token, Global>) -> Result<T, InvalidOutputType>
fn from_tokens(tokens: Vec<Token, Global>) -> Result<T, InvalidOutputType>
Creates a new instance from parsed ABI tokens.
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.