pub enum Response {
RetrieveAddress {
address: String,
},
RetrieveBalance {
address: String,
balance: u64,
},
RetrieveBalances {
balances: Vec<(String, u64)>,
},
ListWallets {
wallets: Vec<String>,
},
Sync {
success: bool,
},
SendTransaction {
txid: String,
},
SendTransactionFrom {
from: String,
txid: String,
},
}Expand description
Represents various types of responses that can be returned.
Variants§
RetrieveAddress
Response containing the retrieved wallet address.
RetrieveBalance
Response containing the balance of a specified wallet.
RetrieveBalances
Response containing the balances of all wallets.
ListWallets
Response containing a list of wallet identifiers.
Sync
Response indicating the success of a synchronization operation.
SendTransaction
Response containing the transaction ID for a sent transaction.
SendTransactionFrom
Response containing the transaction ID and the originating address for a sent transaction.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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