Struct pallet_escrow::pallet::Contribution
source · [−]pub struct Contribution<AccountId, T: Config> { /* private fields */ }
Trait Implementations
sourceimpl<AccountId: Clone, T: Clone + Config> Clone for Contribution<AccountId, T>
impl<AccountId: Clone, T: Clone + Config> Clone for Contribution<AccountId, T>
sourcefn clone(&self) -> Contribution<AccountId, T>
fn clone(&self) -> Contribution<AccountId, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<AccountId, T: Config> Debug for Contribution<AccountId, T> where
AccountId: Debug,
T: Debug,
impl<AccountId, T: Config> Debug for Contribution<AccountId, T> where
AccountId: Debug,
T: Debug,
sourceimpl<AccountId, T: Config> Decode for Contribution<AccountId, T> where
AccountId: Decode,
AccountId: Decode,
BalanceOf<T>: Decode,
BalanceOf<T>: Decode,
impl<AccountId, T: Config> Decode for Contribution<AccountId, T> where
AccountId: Decode,
AccountId: Decode,
BalanceOf<T>: Decode,
BalanceOf<T>: Decode,
sourcefn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.
sourcefn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
Attempt to skip the encoded value from input. Read more
sourcefn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
sourceimpl<AccountId, T: Config> Encode for Contribution<AccountId, T> where
AccountId: Encode,
AccountId: Encode,
BalanceOf<T>: Encode,
BalanceOf<T>: Encode,
impl<AccountId, T: Config> Encode for Contribution<AccountId, T> where
AccountId: Encode,
AccountId: Encode,
BalanceOf<T>: Encode,
BalanceOf<T>: Encode,
sourcefn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
sourcefn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Convert self to an owned vector.
sourcefn 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.
sourcefn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
sourceimpl<AccountId, T: Config> MaxEncodedLen for Contribution<AccountId, T> where
AccountId: MaxEncodedLen,
AccountId: MaxEncodedLen,
BalanceOf<T>: MaxEncodedLen,
BalanceOf<T>: MaxEncodedLen,
impl<AccountId, T: Config> MaxEncodedLen for Contribution<AccountId, T> where
AccountId: MaxEncodedLen,
AccountId: MaxEncodedLen,
BalanceOf<T>: MaxEncodedLen,
BalanceOf<T>: MaxEncodedLen,
sourcefn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
sourceimpl<AccountId: PartialEq, T: PartialEq + Config> PartialEq<Contribution<AccountId, T>> for Contribution<AccountId, T>
impl<AccountId: PartialEq, T: PartialEq + Config> PartialEq<Contribution<AccountId, T>> for Contribution<AccountId, T>
sourcefn eq(&self, other: &Contribution<AccountId, T>) -> bool
fn eq(&self, other: &Contribution<AccountId, T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Contribution<AccountId, T>) -> bool
fn ne(&self, other: &Contribution<AccountId, T>) -> bool
This method tests for !=
.
sourceimpl<AccountId, T: Config> TypeInfo for Contribution<AccountId, T> where
AccountId: TypeInfo + 'static,
BalanceOf<T>: TypeInfo + 'static,
AccountId: TypeInfo + 'static,
T: Config + 'static,
impl<AccountId, T: Config> TypeInfo for Contribution<AccountId, T> where
AccountId: TypeInfo + 'static,
BalanceOf<T>: TypeInfo + 'static,
AccountId: TypeInfo + 'static,
T: Config + 'static,
impl<AccountId, T: Config> EncodeLike<Contribution<AccountId, T>> for Contribution<AccountId, T> where
AccountId: Encode,
AccountId: Encode,
BalanceOf<T>: Encode,
BalanceOf<T>: Encode,
impl<AccountId: Eq, T: Eq + Config> Eq for Contribution<AccountId, T>
impl<AccountId, T: Config> StructuralEq for Contribution<AccountId, T>
impl<AccountId, T: Config> StructuralPartialEq for Contribution<AccountId, T>
Auto Trait Implementations
impl<AccountId, T> RefUnwindSafe for Contribution<AccountId, T> where
AccountId: RefUnwindSafe,
<<T as Config>::EscrowCurrency as Currency<<T as Config>::AccountId>>::Balance: RefUnwindSafe,
impl<AccountId, T> Send for Contribution<AccountId, T> where
AccountId: Send,
<<T as Config>::EscrowCurrency as Currency<<T as Config>::AccountId>>::Balance: Send,
impl<AccountId, T> Sync for Contribution<AccountId, T> where
AccountId: Sync,
<<T as Config>::EscrowCurrency as Currency<<T as Config>::AccountId>>::Balance: Sync,
impl<AccountId, T> Unpin for Contribution<AccountId, T> where
AccountId: Unpin,
<<T as Config>::EscrowCurrency as Currency<<T as Config>::AccountId>>::Balance: Unpin,
impl<AccountId, T> UnwindSafe for Contribution<AccountId, T> where
AccountId: UnwindSafe,
<<T as Config>::EscrowCurrency as Currency<<T as Config>::AccountId>>::Balance: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedConversion for T
impl<T> CheckedConversion for T
sourcefn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
Convert from a value of T
into an equivalent instance of Option<Self>
. Read more
sourcefn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
Consume self to return Some
equivalent value of Option<T>
. Read more
sourceimpl<T> DecodeLimit for T where
T: Decode,
impl<T> DecodeLimit for T where
T: Decode,
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
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
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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
sourceimpl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> DowncastSync for T where
T: Any + Send + Sync,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Hashable for T where
T: Codec,
impl<T> Hashable for T where
T: Codec,
fn blake2_128(&self) -> [u8; 16]
fn blake2_256(&self) -> [u8; 32]
fn blake2_128_concat(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn twox_128(&self) -> [u8; 16]
fn twox_256(&self) -> [u8; 32]
fn twox_64_concat(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn identity(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
sourcefn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
sourcefn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcefn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to unchecked_from
.
sourceimpl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
sourcefn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more