Enum noble_society::RawEvent[][src]

pub enum RawEvent<AccountId, Balance, I> {
    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
}

Events for this module.

Events for this module.

Variants

Founded(AccountId)

The society is founded by the given identity. [founder]

Bid(AccountId, Balance)

A membership bid just happened. The given account is the candidate’s ID and their offer is the second. [candidate_id, offer]

Vouch(AccountId, Balance, AccountId)

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]

AutoUnbid(AccountId)

A [candidate] was dropped (due to an excess of bids in the system).

Unbid(AccountId)

A [candidate] was dropped (by their request).

Unvouch(AccountId)

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]

CandidateSuspended(AccountId)

A [candidate] has been suspended

MemberSuspended(AccountId)

A [member] has been suspended

Challenged(AccountId)

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

Unfounded(AccountId)

Society is unfounded. [founder]

Deposit(Balance)

Some funds were deposited into the society account. [value]

Trait Implementations

impl<AccountId: Clone, Balance: Clone, I: Clone> Clone for RawEvent<AccountId, Balance, I>[src]

impl<AccountId, Balance, I> Debug for RawEvent<AccountId, Balance, I> where
    AccountId: Debug,
    Balance: Debug,
    I: Debug
[src]

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
[src]

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
[src]

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
[src]

impl<AccountId: Eq, Balance: Eq, I: Eq> Eq for RawEvent<AccountId, Balance, I>[src]

impl<AccountId: PartialEq, Balance: PartialEq, I: PartialEq> PartialEq<RawEvent<AccountId, Balance, I>> for RawEvent<AccountId, Balance, I>[src]

impl<AccountId, Balance, I> StructuralEq for RawEvent<AccountId, Balance, I>[src]

impl<AccountId, Balance, I> StructuralPartialEq for RawEvent<AccountId, Balance, I>[src]

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

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> CheckedConversion for T[src]

impl<S> Codec for S where
    S: Decode + Encode
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: ToOwned + Encode
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

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

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Hashable for T where
    T: Codec
[src]

impl<T> Instrument for T[src]

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

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

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 

pub fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Member for T where
    T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone
[src]

impl<T> Parameter for T where
    T: Codec + EncodeLike<T> + Clone + Eq + Debug
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

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.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,