Enum anchor_token::gov::HandleMsg[][src]

pub enum HandleMsg {
    Receive(Cw20ReceiveMsg),
    UpdateConfig {
        owner: Option<HumanAddr>,
        quorum: Option<Decimal>,
        threshold: Option<Decimal>,
        voting_period: Option<u64>,
        effective_delay: Option<u64>,
        expiration_period: Option<u64>,
        proposal_deposit: Option<Uint128>,
    },
    CastVote {
        poll_id: u64,
        vote: VoteOption,
        amount: Uint128,
    },
    WithdrawVotingTokens {
        amount: Option<Uint128>,
    },
    EndPoll {
        poll_id: u64,
    },
    ExecutePoll {
        poll_id: u64,
    },
    ExpirePoll {
        poll_id: u64,
    },
}

Variants

UpdateConfig

Fields of UpdateConfig

owner: Option<HumanAddr>quorum: Option<Decimal>threshold: Option<Decimal>voting_period: Option<u64>effective_delay: Option<u64>expiration_period: Option<u64>proposal_deposit: Option<Uint128>
CastVote

Fields of CastVote

poll_id: u64vote: VoteOptionamount: Uint128
WithdrawVotingTokens

Fields of WithdrawVotingTokens

amount: Option<Uint128>
EndPoll

Fields of EndPoll

poll_id: u64
ExecutePoll

Fields of ExecutePoll

poll_id: u64
ExpirePoll

Fields of ExpirePoll

poll_id: u64

Trait Implementations

impl Clone for HandleMsg[src]

impl Debug for HandleMsg[src]

impl<'de> Deserialize<'de> for HandleMsg[src]

impl JsonSchema for HandleMsg[src]

impl PartialEq<HandleMsg> for HandleMsg[src]

impl Serialize for HandleMsg[src]

impl StructuralPartialEq for HandleMsg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.