Type Alias pallet_election_provider_multi_phase::signed::SignedSubmissionOf
source · pub type SignedSubmissionOf<T> = SignedSubmission<<T as Config>::AccountId, BalanceOf<T>, <<T as Config>::MinerConfig as MinerConfig>::Solution>;
Aliased Type§
struct SignedSubmissionOf<T> {
pub who: <T as Config>::AccountId,
pub deposit: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
pub raw_solution: RawSolution<<<T as Config>::MinerConfig as MinerConfig>::Solution>,
pub call_fee: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
}
Fields§
§who: <T as Config>::AccountId
Who submitted this solution.
deposit: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance
The deposit reserved for storing this solution.
raw_solution: RawSolution<<<T as Config>::MinerConfig as MinerConfig>::Solution>
The raw solution itself.
call_fee: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance
Trait Implementations§
source§impl<AccountId: Clone, Balance: Clone + HasCompact, Solution: Clone> Clone for SignedSubmission<AccountId, Balance, Solution>
impl<AccountId: Clone, Balance: Clone + HasCompact, Solution: Clone> Clone for SignedSubmission<AccountId, Balance, Solution>
source§fn clone(&self) -> SignedSubmission<AccountId, Balance, Solution>
fn clone(&self) -> SignedSubmission<AccountId, Balance, Solution>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<AccountId, Balance, Solution> Debug for SignedSubmission<AccountId, Balance, Solution>where
AccountId: Debug,
Balance: Debug + HasCompact,
Solution: Debug,
impl<AccountId, Balance, Solution> Debug for SignedSubmission<AccountId, Balance, Solution>where AccountId: Debug, Balance: Debug + HasCompact, Solution: Debug,
source§impl<AccountId, Balance, Solution> Decode for SignedSubmission<AccountId, Balance, Solution>where
AccountId: Decode,
Balance: Decode + HasCompact,
RawSolution<Solution>: Decode,
impl<AccountId, Balance, Solution> Decode for SignedSubmission<AccountId, Balance, Solution>where AccountId: Decode, Balance: Decode + HasCompact, RawSolution<Solution>: Decode,
source§fn 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.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn 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
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl<AccountId, Balance, Solution> Encode for SignedSubmission<AccountId, Balance, Solution>where
AccountId: Encode,
Balance: Encode + HasCompact,
RawSolution<Solution>: Encode,
impl<AccountId, Balance, Solution> Encode for SignedSubmission<AccountId, Balance, Solution>where AccountId: Encode, Balance: Encode + HasCompact, RawSolution<Solution>: Encode,
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn 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.
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere 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) -> usize
Calculates the encoded size. Read more
source§impl<AccountId, Balance, Solution> Ord for SignedSubmission<AccountId, Balance, Solution>where
AccountId: Ord,
Balance: Ord + HasCompact,
Solution: Ord,
RawSolution<Solution>: Ord,
impl<AccountId, Balance, Solution> Ord for SignedSubmission<AccountId, Balance, Solution>where AccountId: Ord, Balance: Ord + HasCompact, Solution: Ord, RawSolution<Solution>: Ord,
source§impl<AccountId: PartialEq, Balance: PartialEq + HasCompact, Solution: PartialEq> PartialEq<SignedSubmission<AccountId, Balance, Solution>> for SignedSubmission<AccountId, Balance, Solution>
impl<AccountId: PartialEq, Balance: PartialEq + HasCompact, Solution: PartialEq> PartialEq<SignedSubmission<AccountId, Balance, Solution>> for SignedSubmission<AccountId, Balance, Solution>
source§fn eq(&self, other: &SignedSubmission<AccountId, Balance, Solution>) -> bool
fn eq(&self, other: &SignedSubmission<AccountId, Balance, Solution>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<AccountId, Balance, Solution> PartialOrd<SignedSubmission<AccountId, Balance, Solution>> for SignedSubmission<AccountId, Balance, Solution>where
AccountId: Ord,
Balance: Ord + HasCompact,
Solution: Ord,
RawSolution<Solution>: Ord,
impl<AccountId, Balance, Solution> PartialOrd<SignedSubmission<AccountId, Balance, Solution>> for SignedSubmission<AccountId, Balance, Solution>where AccountId: Ord, Balance: Ord + HasCompact, Solution: Ord, RawSolution<Solution>: Ord,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more