Struct switchboard_evm::bindings::eip712::Transaction
source · pub struct Transaction {
pub expiration_time_seconds: U256,
pub gas_limit: U256,
pub value: U256,
pub to: Address,
pub from: Address,
pub data: Bytes,
}Expand description
Transaction(uint256,uint256,uint256,address,address,bytes)
Fields§
§expiration_time_seconds: U256§gas_limit: U256§value: U256§to: Address§from: Address§data: BytesImplementations§
source§impl Transaction
impl Transaction
pub fn encode_eip712( &self, domain: EIP712Domain ) -> Result<[u8; 32], Eip712Error>
Trait Implementations§
source§impl AbiDecode for Transaction
impl AbiDecode for Transaction
source§impl AbiEncode for Transaction
impl AbiEncode for Transaction
source§impl AbiType for Transaction
impl AbiType for Transaction
source§fn param_type() -> ParamType
fn param_type() -> ParamType
The native ABI type this type represents.
§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 Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
source§impl Default for Transaction
impl Default for Transaction
source§fn default() -> Transaction
fn default() -> Transaction
Returns the “default value” for a type. Read more
source§impl From<&EvmTransaction> for Transaction
impl From<&EvmTransaction> for Transaction
source§fn from(tx: &EvmTransaction) -> Self
fn from(tx: &EvmTransaction) -> Self
Converts to this type from the input type.
source§impl From<&Transaction> for Transaction
impl From<&Transaction> for Transaction
source§fn from(tx: &Transaction) -> Self
fn from(tx: &Transaction) -> Self
Converts to this type from the input type.
source§impl Hash for Transaction
impl Hash for Transaction
source§impl PartialEq<Transaction> for Transaction
impl PartialEq<Transaction> for Transaction
source§fn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Tokenizable for Transactionwhere
U256: Tokenize,
Address: Tokenize,
Bytes: Tokenize,
impl Tokenizable for Transactionwhere U256: Tokenize, Address: Tokenize, Bytes: 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 Transaction
impl Eq for Transaction
impl StructuralEq for Transaction
impl StructuralPartialEq for Transaction
impl TokenizableItem for Transactionwhere U256: Tokenize, Address: Tokenize, Bytes: Tokenize,
Auto Trait Implementations§
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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
§impl<T> Detokenize for Twhere
T: Tokenizable,
impl<T> Detokenize for Twhere T: Tokenizable,
§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.§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.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> 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>
§impl<T> Tokenize for Twhere
T: Tokenizable,
impl<T> Tokenize for Twhere T: Tokenizable,
§fn into_tokens(self) -> Vec<Token, Global>
fn into_tokens(self) -> Vec<Token, Global>
Converts
self into a Vec<Token>.