Struct gekko::runtime::kusama::extrinsics::phragmen_election::SubmitCandidacy [−][src]
Expand description
Submit oneself for candidacy. A fixed amount of deposit is recorded.
Documentation (provided by the runtime metadata)
Submit oneself for candidacy. A fixed amount of deposit is recorded.
All candidates are wiped at the end of the term. They either become a member/runner-up, or leave the system while their deposit is slashed.
The dispatch origin of this call must be signed.
Warning
Even if a candidate ends up being a member, they must call Call::renounce_candidacy
to get their deposit back. Losing the spot in an election will always lead to a slash.
The number of current candidates must be provided as witness data.
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
candidate_count: A
Type description: Compact<u32>
Trait Implementations
impl<A: PartialEq> PartialEq<SubmitCandidacy<A>> for SubmitCandidacy<A> where
A: Encode + Decode,
impl<A: PartialEq> PartialEq<SubmitCandidacy<A>> for SubmitCandidacy<A> where
A: Encode + Decode,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<A> RefUnwindSafe for SubmitCandidacy<A> where
A: RefUnwindSafe,
impl<A> Send for SubmitCandidacy<A> where
A: Send,
impl<A> Sync for SubmitCandidacy<A> where
A: Sync,
impl<A> Unpin for SubmitCandidacy<A> where
A: Unpin,
impl<A> UnwindSafe for SubmitCandidacy<A> where
A: 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
.