Struct gekko::runtime::kusama::extrinsics::democracy::Vote [−][src]
pub struct Vote<A, B> where
A: Encode + Decode,
B: Encode + Decode, {
pub ref_index: A,
pub vote: B,
}
Expand description
Vote in a referendum. If vote.is_aye()
, the vote is to enact the proposal;
Documentation (provided by the runtime metadata)
Vote in a referendum. If vote.is_aye()
, the vote is to enact the proposal;
otherwise it is a vote to keep the status quo.
The dispatch origin of this call must be Signed.
ref_index
: The index of the referendum to vote for.vote
: The vote configuration.
Weight: O(R)
where R is the number of referendums the voter has voted on.
Type Disclaimer
This library makes no assumptions about parameter types and must be specified manually as generic types. Each field contains a type description which can serve as a hint on what type is being expected, as provided by the runtime meatadata. See the common
module for common types which can be used.
Fields
ref_index: A
Type description: Compact<ReferendumIndex>
vote: B
Type description: AccountVote<BalanceOf<T>>
Trait Implementations
Auto Trait Implementations
impl<A, B> RefUnwindSafe for Vote<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> UnwindSafe for Vote<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.