pub enum AuthenticatedQueryResponse {
    Allowance {
        spender: HumanAddr,
        owner: HumanAddr,
        allowance: Uint128,
        expiration: Option<u64>,
    },
    Balance {
        amount: Uint128,
    },
    TransferHistory {
        txs: Vec<Tx>,
        total: Option<u64>,
    },
    TransactionHistory {
        txs: Vec<RichTx>,
        total: Option<u64>,
    },
    ViewingKeyError {
        msg: String,
    },
}
Expand description

enum used to screen for a ViewingKeyError response from an authenticated query

Variants

Allowance

Fields

spender: HumanAddr
owner: HumanAddr
allowance: Uint128
expiration: Option<u64>

Balance

Fields

amount: Uint128

TransferHistory

Fields

txs: Vec<Tx>
total: Option<u64>

TransactionHistory

Fields

txs: Vec<RichTx>
total: Option<u64>

ViewingKeyError

Fields

msg: String

Trait Implementations

Deserialize this value from the given Serde deserializer. 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.

Calls U::from(self).

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

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.