Enum fadroma::snip20_impl::msg::QueryAnswer
source · [−]pub enum QueryAnswer {
TokenInfo {
name: String,
symbol: String,
decimals: u8,
total_supply: Option<Uint128>,
},
ContractStatus {
status: ContractStatusLevel,
},
ExchangeRate {
rate: Uint128,
denom: String,
},
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,
},
Minters {
minters: Vec<HumanAddr>,
},
}
Variants
TokenInfo
ContractStatus
Fields
status: ContractStatusLevel
ExchangeRate
Allowance
Balance
Fields
amount: Uint128
TransferHistory
TransactionHistory
ViewingKeyError
Fields
msg: String
Minters
Trait Implementations
sourceimpl Debug for QueryAnswer
impl Debug for QueryAnswer
sourceimpl<'de> Deserialize<'de> for QueryAnswer
impl<'de> Deserialize<'de> for QueryAnswer
sourcefn 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
sourceimpl JsonSchema for QueryAnswer
impl JsonSchema for QueryAnswer
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
sourceimpl Serialize for QueryAnswer
impl Serialize for QueryAnswer
Auto Trait Implementations
impl RefUnwindSafe for QueryAnswer
impl Send for QueryAnswer
impl Sync for QueryAnswer
impl Unpin for QueryAnswer
impl UnwindSafe for QueryAnswer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more