pub struct GetBlockNumberReturn {
pub block_number: U256,
}Available on crate feature
abigen only.Expand description
Container type for all return fields from the getBlockNumber function with signature getBlockNumber() and selector 0x42cbb15c
Fields§
§block_number: U256Trait Implementations§
source§impl AbiDecode for GetBlockNumberReturn
impl AbiDecode for GetBlockNumberReturn
source§impl AbiEncode for GetBlockNumberReturn
impl AbiEncode for GetBlockNumberReturn
source§impl AbiType for GetBlockNumberReturn
impl AbiType for GetBlockNumberReturn
source§fn param_type() -> ParamType
fn param_type() -> ParamType
The native ABI type this type represents.
source§fn minimum_size() -> usize
fn minimum_size() -> usize
A hint of the minimum number of bytes this type takes up in the ABI.
source§impl Clone for GetBlockNumberReturn
impl Clone for GetBlockNumberReturn
source§fn clone(&self) -> GetBlockNumberReturn
fn clone(&self) -> GetBlockNumberReturn
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 GetBlockNumberReturn
impl Debug for GetBlockNumberReturn
source§impl Default for GetBlockNumberReturn
impl Default for GetBlockNumberReturn
source§fn default() -> GetBlockNumberReturn
fn default() -> GetBlockNumberReturn
Returns the “default value” for a type. Read more
source§impl Hash for GetBlockNumberReturn
impl Hash for GetBlockNumberReturn
source§impl PartialEq for GetBlockNumberReturn
impl PartialEq for GetBlockNumberReturn
source§fn eq(&self, other: &GetBlockNumberReturn) -> bool
fn eq(&self, other: &GetBlockNumberReturn) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Tokenizable for GetBlockNumberReturnwhere
U256: Tokenize,
impl Tokenizable for GetBlockNumberReturnwhere U256: Tokenize,
source§fn from_token(token: Token) -> Result<Self, InvalidOutputType>
fn from_token(token: Token) -> Result<Self, InvalidOutputType>
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 GetBlockNumberReturn
impl Eq for GetBlockNumberReturn
impl StructuralEq for GetBlockNumberReturn
impl StructuralPartialEq for GetBlockNumberReturn
impl TokenizableItem for GetBlockNumberReturnwhere U256: Tokenize,
Auto Trait Implementations§
impl RefUnwindSafe for GetBlockNumberReturn
impl Send for GetBlockNumberReturn
impl Sync for GetBlockNumberReturn
impl Unpin for GetBlockNumberReturn
impl UnwindSafe for GetBlockNumberReturn
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> Detokenize for Twhere
T: Tokenizable,
impl<T> Detokenize for Twhere T: Tokenizable,
source§fn from_tokens(tokens: Vec<Token>) -> Result<T, InvalidOutputType>
fn from_tokens(tokens: Vec<Token>) -> Result<T, InvalidOutputType>
Creates a new instance from parsed ABI tokens.
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Tokenize for Twhere
T: Tokenizable,
impl<T> Tokenize for Twhere T: Tokenizable,
source§fn into_tokens(self) -> Vec<Token>
fn into_tokens(self) -> Vec<Token>
Converts
self into a Vec<Token>.