pub struct TransactionResponse {
pub from: String,
pub to: String,
pub chain_id: u64,
pub value: String,
pub data: String,
pub gas_price: Option<String>,
pub gas: Option<String>,
}Expand description
Transaction response ready for signing
Fields§
§from: StringSender address
to: StringRouter contract address
chain_id: u64Chain ID
value: StringValue to send (for native token swaps)
data: StringEncoded transaction data
gas_price: Option<String>Suggested gas price
gas: Option<String>Estimated gas limit
Trait Implementations§
Source§impl Clone for TransactionResponse
impl Clone for TransactionResponse
Source§fn clone(&self) -> TransactionResponse
fn clone(&self) -> TransactionResponse
Returns a duplicate 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 TransactionResponse
impl Debug for TransactionResponse
Source§impl<'de> Deserialize<'de> for TransactionResponse
impl<'de> Deserialize<'de> for TransactionResponse
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 TransactionResponse
impl RefUnwindSafe for TransactionResponse
impl Send for TransactionResponse
impl Sync for TransactionResponse
impl Unpin for TransactionResponse
impl UnwindSafe for TransactionResponse
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