Enum pallet_society::RawEvent [−][src]
pub enum RawEvent<AccountId, Balance, I> {
Show variants
Founded(AccountId),
Bid(AccountId, Balance),
Vouch(AccountId, Balance, AccountId),
AutoUnbid(AccountId),
Unbid(AccountId),
Unvouch(AccountId),
Inducted(AccountId, Vec<AccountId>),
SuspendedMemberJudgement(AccountId, bool),
CandidateSuspended(AccountId),
MemberSuspended(AccountId),
Challenged(AccountId),
Vote(AccountId, AccountId, bool),
DefenderVote(AccountId, bool),
NewMaxMembers(u32),
Unfounded(AccountId),
Deposit(Balance),
// some variants omitted
}Expand description
Events for this module.
Events for this module.
Variants
The society is founded by the given identity. [founder]
A membership bid just happened. The given account is the candidate’s ID and their offer is the second. [candidate_id, offer]
A membership bid just happened by vouching. The given account is the candidate’s ID and their offer is the second. The vouching party is the third. [candidate_id, offer, vouching]
A [candidate] was dropped (due to an excess of bids in the system).
A [candidate] was dropped (by their request).
A [candidate] was dropped (by request of who vouched for them).
Inducted(AccountId, Vec<AccountId>)A group of candidates have been inducted. The batch’s primary is the first value, the batch in full is the second. [primary, candidates]
SuspendedMemberJudgement(AccountId, bool)A suspended member has been judged. [who, judged]
A [candidate] has been suspended
A [member] has been suspended
A [member] has been challenged
Vote(AccountId, AccountId, bool)A vote has been placed [candidate, voter, vote]
DefenderVote(AccountId, bool)A vote has been placed for a defending member [voter, vote]
NewMaxMembers(u32)A new [max] member count has been set
Society is unfounded. [founder]
Some funds were deposited into the society account. [value]
Trait Implementations
impl<AccountId, Balance, I> Decode for RawEvent<AccountId, Balance, I> where
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
Balance: Decode,
Balance: Decode,
AccountId: Decode,
AccountId: Decode,
Balance: Decode,
Balance: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
Vec<AccountId>: Decode,
Vec<AccountId>: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
Balance: Decode,
Balance: Decode,
impl<AccountId, Balance, I> Decode for RawEvent<AccountId, Balance, I> where
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
Balance: Decode,
Balance: Decode,
AccountId: Decode,
AccountId: Decode,
Balance: Decode,
Balance: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
Vec<AccountId>: Decode,
Vec<AccountId>: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
AccountId: Decode,
Balance: Decode,
Balance: Decode, Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>Returns the fixed encoded size of the type. Read more
impl<AccountId, Balance, I> Encode for RawEvent<AccountId, Balance, I> where
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Balance: Encode,
Balance: Encode,
AccountId: Encode,
AccountId: Encode,
Balance: Encode,
Balance: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Vec<AccountId>: Encode,
Vec<AccountId>: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Balance: Encode,
Balance: Encode,
impl<AccountId, Balance, I> Encode for RawEvent<AccountId, Balance, I> where
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Balance: Encode,
Balance: Encode,
AccountId: Encode,
AccountId: Encode,
Balance: Encode,
Balance: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Vec<AccountId>: Encode,
Vec<AccountId>: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Balance: Encode,
Balance: Encode, Convert self to a slice and append it to the destination.
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R, Convert self to a slice and then invoke the given closure with it.
fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usizeCalculates the encoded size. Read more
impl<AccountId, Balance, I> EncodeLike<RawEvent<AccountId, Balance, I>> for RawEvent<AccountId, Balance, I> where
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Balance: Encode,
Balance: Encode,
AccountId: Encode,
AccountId: Encode,
Balance: Encode,
Balance: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Vec<AccountId>: Encode,
Vec<AccountId>: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Balance: Encode,
Balance: Encode, Auto Trait Implementations
impl<AccountId, Balance, I> RefUnwindSafe for RawEvent<AccountId, Balance, I> where
AccountId: RefUnwindSafe,
Balance: RefUnwindSafe,
I: RefUnwindSafe, impl<AccountId, Balance, I> Send for RawEvent<AccountId, Balance, I> where
AccountId: Send,
Balance: Send,
I: Send, impl<AccountId, Balance, I> Sync for RawEvent<AccountId, Balance, I> where
AccountId: Sync,
Balance: Sync,
I: Sync, impl<AccountId, Balance, I> Unpin for RawEvent<AccountId, Balance, I> where
AccountId: Unpin,
Balance: Unpin,
I: Unpin, impl<AccountId, Balance, I> UnwindSafe for RawEvent<AccountId, Balance, I> where
AccountId: UnwindSafe,
Balance: UnwindSafe,
I: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any, Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
pub fn vzip(self) -> Vimpl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode, impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode, impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode, impl<T> EncodeLike<Arc<T>> for T where
T: Encode, impl<T> EncodeLike<Rc<T>> for T where
T: Encode, impl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeDebug for T where
T: Debug,