pub enum Request {
RetrieveAddress,
SendTransaction {
to: String,
amount: u64,
},
SendTransactionFrom {
from: String,
to: String,
amount: u64,
},
RetrieveBalance {
address: String,
},
RetrieveBalances,
ListWallets,
Sync,
}Expand description
Represents various types of requests that can be made.
Variants§
RetrieveAddress
Request to retrieve the address of the best wallet to use.
SendTransaction
Request to send a transaction to a specific address with a specified amount.
SendTransactionFrom
Request to send a transaction from a specific address to another with a specified amount.
RetrieveBalance
Request to retrieve the balance of specified wallet.
RetrieveBalances
Request to retrieve balances of all wallets.
ListWallets
Request to list all available wallets.
Sync
Request to synchronize the system state.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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