[−][src]Enum sunshine_util::bounty::ReviewBoard
Metadata that represents pre-dispatch, grant milestone reviews
Variants
Petition pre-call-metadata optional sudo, org_id, flat_share_id, signature_approval_threshold, signature_rejection_threshold, topic
WeightedThresholdReview(Option<AccountId>, u32, u32, SupportedVoteTypes, WeightedThreshold)
Vote-YesNo pre-call-metadata optional sudo, org_id, weighted_share_id, threshold expressed generically
Implementations
impl<AccountId: PartialEq, Hash, WeightedThreshold> ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
pub fn new_flat_petition_review(
sudo: Option<AccountId>,
org_id: u32,
flat_share_id: u32,
approval_threshold: u32,
reject_threshold: Option<u32>,
topic: Option<Hash>
) -> ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
sudo: Option<AccountId>,
org_id: u32,
flat_share_id: u32,
approval_threshold: u32,
reject_threshold: Option<u32>,
topic: Option<Hash>
) -> ReviewBoard<AccountId, Hash, WeightedThreshold>
pub fn new_weighted_threshold_review(
sudo: Option<AccountId>,
org_id: u32,
weighted_share_id: u32,
vote_type: SupportedVoteTypes,
threshold: WeightedThreshold
) -> ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
sudo: Option<AccountId>,
org_id: u32,
weighted_share_id: u32,
vote_type: SupportedVoteTypes,
threshold: WeightedThreshold
) -> ReviewBoard<AccountId, Hash, WeightedThreshold>
pub fn is_sudo(&self, acc: &AccountId) -> bool
[src]
Trait Implementations
impl<AccountId: Clone, Hash: Clone, WeightedThreshold: Clone> Clone for ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
fn clone(&self) -> ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<AccountId: Copy, Hash: Copy, WeightedThreshold: Copy> Copy for ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
impl<AccountId, Hash, WeightedThreshold> Debug for ReviewBoard<AccountId, Hash, WeightedThreshold> where
AccountId: Debug,
Hash: Debug,
WeightedThreshold: Debug,
[src]
AccountId: Debug,
Hash: Debug,
WeightedThreshold: Debug,
impl<AccountId, Hash, WeightedThreshold> Decode for ReviewBoard<AccountId, Hash, WeightedThreshold> where
Option<AccountId>: Decode,
Option<AccountId>: Decode,
Option<Hash>: Decode,
Option<Hash>: Decode,
Option<AccountId>: Decode,
Option<AccountId>: Decode,
WeightedThreshold: Decode,
WeightedThreshold: Decode,
[src]
Option<AccountId>: Decode,
Option<AccountId>: Decode,
Option<Hash>: Decode,
Option<Hash>: Decode,
Option<AccountId>: Decode,
Option<AccountId>: Decode,
WeightedThreshold: Decode,
WeightedThreshold: Decode,
impl<AccountId, Hash, WeightedThreshold> Encode for ReviewBoard<AccountId, Hash, WeightedThreshold> where
Option<AccountId>: Encode,
Option<AccountId>: Encode,
Option<Hash>: Encode,
Option<Hash>: Encode,
Option<AccountId>: Encode,
Option<AccountId>: Encode,
WeightedThreshold: Encode,
WeightedThreshold: Encode,
[src]
Option<AccountId>: Encode,
Option<AccountId>: Encode,
Option<Hash>: Encode,
Option<Hash>: Encode,
Option<AccountId>: Encode,
Option<AccountId>: Encode,
WeightedThreshold: Encode,
WeightedThreshold: Encode,
fn encode_to<EncOut: Output>(&self, dest: &mut EncOut)
[src]
fn size_hint(&self) -> usize
[src]
fn encode(&self) -> Vec<u8>
[src]
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
[src]
F: FnOnce(&[u8]) -> R,
impl<AccountId, Hash, WeightedThreshold> EncodeLike<ReviewBoard<AccountId, Hash, WeightedThreshold>> for ReviewBoard<AccountId, Hash, WeightedThreshold> where
Option<AccountId>: Encode,
Option<AccountId>: Encode,
Option<Hash>: Encode,
Option<Hash>: Encode,
Option<AccountId>: Encode,
Option<AccountId>: Encode,
WeightedThreshold: Encode,
WeightedThreshold: Encode,
[src]
Option<AccountId>: Encode,
Option<AccountId>: Encode,
Option<Hash>: Encode,
Option<Hash>: Encode,
Option<AccountId>: Encode,
Option<AccountId>: Encode,
WeightedThreshold: Encode,
WeightedThreshold: Encode,
impl<AccountId: Eq, Hash: Eq, WeightedThreshold: Eq> Eq for ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
impl<AccountId, Hash, WeightThreshold> From<ReviewBoard<AccountId, Hash, WeightThreshold>> for WithdrawalPermissions<AccountId>
[src]
fn from(
other: ReviewBoard<AccountId, Hash, WeightThreshold>
) -> WithdrawalPermissions<AccountId>
[src]
other: ReviewBoard<AccountId, Hash, WeightThreshold>
) -> WithdrawalPermissions<AccountId>
impl<AccountId: PartialEq, Hash: PartialEq, WeightedThreshold: PartialEq> PartialEq<ReviewBoard<AccountId, Hash, WeightedThreshold>> for ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
fn eq(&self, other: &ReviewBoard<AccountId, Hash, WeightedThreshold>) -> bool
[src]
fn ne(&self, other: &ReviewBoard<AccountId, Hash, WeightedThreshold>) -> bool
[src]
impl<AccountId, Hash, WeightedThreshold> StructuralEq for ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
impl<AccountId, Hash, WeightedThreshold> StructuralPartialEq for ReviewBoard<AccountId, Hash, WeightedThreshold>
[src]
Auto Trait Implementations
impl<AccountId, Hash, WeightedThreshold> RefUnwindSafe for ReviewBoard<AccountId, Hash, WeightedThreshold> where
AccountId: RefUnwindSafe,
Hash: RefUnwindSafe,
WeightedThreshold: RefUnwindSafe,
AccountId: RefUnwindSafe,
Hash: RefUnwindSafe,
WeightedThreshold: RefUnwindSafe,
impl<AccountId, Hash, WeightedThreshold> Send for ReviewBoard<AccountId, Hash, WeightedThreshold> where
AccountId: Send,
Hash: Send,
WeightedThreshold: Send,
AccountId: Send,
Hash: Send,
WeightedThreshold: Send,
impl<AccountId, Hash, WeightedThreshold> Sync for ReviewBoard<AccountId, Hash, WeightedThreshold> where
AccountId: Sync,
Hash: Sync,
WeightedThreshold: Sync,
AccountId: Sync,
Hash: Sync,
WeightedThreshold: Sync,
impl<AccountId, Hash, WeightedThreshold> Unpin for ReviewBoard<AccountId, Hash, WeightedThreshold> where
AccountId: Unpin,
Hash: Unpin,
WeightedThreshold: Unpin,
AccountId: Unpin,
Hash: Unpin,
WeightedThreshold: Unpin,
impl<AccountId, Hash, WeightedThreshold> UnwindSafe for ReviewBoard<AccountId, Hash, WeightedThreshold> where
AccountId: UnwindSafe,
Hash: UnwindSafe,
WeightedThreshold: UnwindSafe,
AccountId: UnwindSafe,
Hash: UnwindSafe,
WeightedThreshold: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<S> Codec for S where
S: Encode + Decode,
[src]
S: Encode + Decode,
impl<T, X> Decode for X where
T: Decode + Into<X>,
X: WrapperTypeDecode<Wrapped = T>,
[src]
T: Decode + Into<X>,
X: WrapperTypeDecode<Wrapped = T>,
impl<T> DecodeAll for T where
T: Decode,
[src]
T: Decode,
impl<T, X> Encode for X where
T: Encode + ?Sized,
X: WrapperTypeEncode<Target = T>,
[src]
T: Encode + ?Sized,
X: WrapperTypeEncode<Target = T>,
fn size_hint(&self) -> usize
[src]
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
[src]
F: FnOnce(&[u8]) -> R,
fn encode(&self) -> Vec<u8>
[src]
fn encode_to<W>(&self, dest: &mut W) where
W: Output,
[src]
W: Output,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Box<T>> for T where
T: Encode,
[src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
T: Encode + ToOwned,
[src]
T: Encode + ToOwned,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> From<T> for T
[src]
impl<S> FullCodec for S where
S: Decode + FullEncode,
[src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>,
[src]
S: Encode + EncodeLike<S>,
impl<T> Hashable for T where
T: Codec,
[src]
T: Codec,
fn blake2_128(&self) -> [u8; 16]
[src]
fn blake2_256(&self) -> [u8; 32]
[src]
fn blake2_128_concat(&self) -> Vec<u8>
[src]
fn twox_128(&self) -> [u8; 16]
[src]
fn twox_256(&self) -> [u8; 32]
[src]
fn twox_64_concat(&self) -> Vec<u8>
[src]
fn identity(&self) -> Vec<u8>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
[src]
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
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]
T: Codec,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Member for T where
T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug,
[src]
T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug,
impl<T> Parameter for T where
T: Codec + EncodeLike<T> + Clone + Eq + Debug,
[src]
T: Codec + EncodeLike<T> + Clone + Eq + Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
T: Bounded,
fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,