Struct gekko::runtime::polkadot::extrinsics::council::Vote [−][src]
pub struct Vote<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode, {
pub proposal: A,
pub index: B,
pub approve: C,
}
Expand description
Add an aye or nay vote for the sender to the given proposal.
Documentation (provided by the runtime metadata)
Add an aye or nay vote for the sender to the given proposal.
Requires the sender to be a member.
Transaction fees will be waived if the member is voting on any particular proposal for the first time and the call is successful. Subsequent vote changes will charge a fee.
Weight
O(M)
whereM
is members-count (code- and governance-bounded)- DB:
- 1 storage read
Members
(codecO(M)
) - 1 storage mutation
Voting
(codecO(M)
)
- 1 storage read
- 1 event
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
proposal: A
Type description: T::Hash
index: B
Type description: Compact<ProposalIndex>
approve: C
Type description: bool
Trait Implementations
impl<A: Eq, B: Eq, C: Eq> Eq for Vote<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
Auto Trait Implementations
impl<A, B, C> RefUnwindSafe for Vote<A, B, C> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, B, C> UnwindSafe for Vote<A, B, C> where
A: UnwindSafe,
B: UnwindSafe,
C: 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
.