Struct pallet_nftdao::Proposal[][src]

pub struct Proposal<AccountId, Balance, Hash> {
    pub applicant: AccountId,
    pub proposer: AccountId,
    pub sponsor: Option<AccountId>,
    pub shares_requested: u128,
    pub tribute_offered: Balance,
    pub tribute_nft: Option<(Hash, u128)>,
    pub starting_period: u128,
    pub yes_votes: u128,
    pub no_votes: u128,
    pub details: Vec<u8>,
    pub action: Option<Vec<u8>>,
    pub sponsored: bool,
    pub processed: bool,
    pub did_pass: bool,
    pub cancelled: bool,
    pub executed: bool,
    pub max_total_shares_at_yes_vote: u128,
}

Proposal’s details

Fields

applicant: AccountIdproposer: AccountIdsponsor: Option<AccountId>shares_requested: u128tribute_offered: Balancetribute_nft: Option<(Hash, u128)>starting_period: u128yes_votes: u128no_votes: u128details: Vec<u8>action: Option<Vec<u8>>sponsored: boolprocessed: booldid_pass: boolcancelled: boolexecuted: boolmax_total_shares_at_yes_vote: u128

Trait Implementations

impl<AccountId: Clone, Balance: Clone, Hash: Clone> Clone for Proposal<AccountId, Balance, Hash>[src]

impl<AccountId, Balance, Hash> Decode for Proposal<AccountId, Balance, Hash> where
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    Option<AccountId>: Decode,
    Option<AccountId>: Decode,
    Balance: Decode,
    Balance: Decode,
    Option<(Hash, u128)>: Decode,
    Option<(Hash, u128)>: Decode
[src]

impl<AccountId: Default, Balance: Default, Hash: Default> Default for Proposal<AccountId, Balance, Hash>[src]

impl<AccountId, Balance, Hash> Encode for Proposal<AccountId, Balance, Hash> where
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Option<AccountId>: Encode,
    Option<AccountId>: Encode,
    Balance: Encode,
    Balance: Encode,
    Option<(Hash, u128)>: Encode,
    Option<(Hash, u128)>: Encode
[src]

impl<AccountId, Balance, Hash> EncodeLike<Proposal<AccountId, Balance, Hash>> for Proposal<AccountId, Balance, Hash> where
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Option<AccountId>: Encode,
    Option<AccountId>: Encode,
    Balance: Encode,
    Balance: Encode,
    Option<(Hash, u128)>: Encode,
    Option<(Hash, u128)>: Encode
[src]

impl<AccountId: PartialEq, Balance: PartialEq, Hash: PartialEq> PartialEq<Proposal<AccountId, Balance, Hash>> for Proposal<AccountId, Balance, Hash>[src]

impl<T: Config> StorageDoubleMap<<T as Config>::AccountId, u128, Proposal<<T as Config>::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance, <T as Config>::Hash>> for Proposals<T>[src]

type Query = Option<Proposal<T::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance, T::Hash>>

The type that get/take returns.

type Hasher1 = Blake2_128Concat

Hasher for the first key.

type Hasher2 = Blake2_128Concat

Hasher for the second key.

impl<T: Config> StoragePrefixedMap<Proposal<<T as Config>::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance, <T as Config>::Hash>> for Proposals<T>[src]

impl<AccountId, Balance, Hash> StructuralPartialEq for Proposal<AccountId, Balance, Hash>[src]

Auto Trait Implementations

impl<AccountId, Balance, Hash> RefUnwindSafe for Proposal<AccountId, Balance, Hash> where
    AccountId: RefUnwindSafe,
    Balance: RefUnwindSafe,
    Hash: RefUnwindSafe

impl<AccountId, Balance, Hash> Send for Proposal<AccountId, Balance, Hash> where
    AccountId: Send,
    Balance: Send,
    Hash: Send

impl<AccountId, Balance, Hash> Sync for Proposal<AccountId, Balance, Hash> where
    AccountId: Sync,
    Balance: Sync,
    Hash: Sync

impl<AccountId, Balance, Hash> Unpin for Proposal<AccountId, Balance, Hash> where
    AccountId: Unpin,
    Balance: Unpin,
    Hash: Unpin

impl<AccountId, Balance, Hash> UnwindSafe for Proposal<AccountId, Balance, Hash> where
    AccountId: UnwindSafe,
    Balance: UnwindSafe,
    Hash: 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> 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>, 
[src]

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

Get a reference to the inner from the outer.

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

Get a mutable reference to the inner from the outer.

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

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

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

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]