pub enum Response {
Show 29 variants Account(AccountDto), Accounts(Vec<AccountDto>), Addresses(Vec<AccountAddress>), AddressesWithUnspentOutputs(Vec<AddressWithUnspentOutputsDto>), Output(OutputDto), MinimumRequiredStorageDeposit(String), OutputIds(Vec<OutputId>), OutputData(Option<Box<OutputDataDto>>), OutputsData(Vec<OutputDataDto>), PreparedTransaction(PreparedTransactionDataDto), Transaction(Option<Box<TransactionDto>>), Transactions(Vec<TransactionDto>), SignedTransactionData(SignedTransactionDataDto), GeneratedAddress(Vec<AccountAddress>), Balance(AccountBalanceDto), LedgerNanoStatus(LedgerNanoStatus), IncomingTransactionData(Option<Box<(TransactionId, (TransactionPayloadDto, Vec<OutputResponse>))>>), IncomingTransactionsData(Vec<(TransactionId, (TransactionPayloadDto, Vec<OutputResponse>))>), SentTransaction(TransactionDto), SentTransactions(Vec<TransactionDto>), MintTokenTransaction(MintTokenTransactionDto), StrongholdPasswordIsAvailable(bool), Error(Error), Panic(String), GeneratedMnemonic(String), NodeInfo(NodeInfoWrapper), HexAddress(String), Bech32Address(String), Ok(()),
}
Expand description

The response message.

Variants

Account(AccountDto)

Response for CreateAccount, GetAccount

Accounts(Vec<AccountDto>)

Response for GetAccounts

Addresses(Vec<AccountAddress>)

Response for ListAddresses

AddressesWithUnspentOutputs(Vec<AddressWithUnspentOutputsDto>)

Output(OutputDto)

MinimumRequiredStorageDeposit(String)

OutputIds(Vec<OutputId>)

Response for [GetOutputsWithAdditionalUnlockConditions](crate::message_interface::AccountMethod:: GetOutputsWithAdditionalUnlockConditions)

OutputData(Option<Box<OutputDataDto>>)

Response for GetOutput

OutputsData(Vec<OutputDataDto>)

PreparedTransaction(PreparedTransactionDataDto)

Transaction(Option<Box<TransactionDto>>)

Response for GetTransaction,

Transactions(Vec<TransactionDto>)

SignedTransactionData(SignedTransactionDataDto)

Response for SignTransaction

GeneratedAddress(Vec<AccountAddress>)

GenerateAddress response. Response for GenerateAddresses

Balance(AccountBalanceDto)

Response for GetBalance, SyncAccount

LedgerNanoStatus(LedgerNanoStatus)

Response for GetLedgerNanoStatus,

IncomingTransactionData(Option<Box<(TransactionId, (TransactionPayloadDto, Vec<OutputResponse>))>>)

IncomingTransactionsData(Vec<(TransactionId, (TransactionPayloadDto, Vec<OutputResponse>))>)

SentTransaction(TransactionDto)

SentTransactions(Vec<TransactionDto>)

Response for ClaimOutputs

MintTokenTransaction(MintTokenTransactionDto)

Response for MintNativeToken,

StrongholdPasswordIsAvailable(bool)

Error(Error)

An error occurred.

Panic(String)

A panic occurred.

GeneratedMnemonic(String)

Response for GenerateMnemonic

NodeInfo(NodeInfoWrapper)

Response for GetNodeInfo

HexAddress(String)

Response for Bech32ToHex

Bech32Address(String)

Response for HexToBech32

Ok(())

Response for Backup, ClearStrongholdPassword, RestoreBackup, DeleteAccountsAndDatabase, VerifyMnemonic, SetClientOptions, SetStrongholdPassword, [SetStrongholdPasswordClearInterval](crate::message_interface::Message:: SetStrongholdPasswordClearInterval), StoreMnemonic, StartBackgroundSync, StopBackgroundSync, EmitTestEvent,

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more