Struct vit_servicing_station_tests::common::data::ChallengeConfig
source · pub struct ChallengeConfig {
pub(crate) proposals: VecDeque<ProposalConfig>,
pub(crate) rewards_total: Option<u64>,
pub(crate) proposers_rewards: Option<u64>,
}
Fields§
§proposals: VecDeque<ProposalConfig>
§rewards_total: Option<u64>
§proposers_rewards: Option<u64>
Implementations§
source§impl ChallengeConfig
impl ChallengeConfig
pub fn proposals(self, proposals: Vec<ProposalConfig>) -> Self
pub fn proposals_len(&self) -> usize
pub fn proposal(self, proposal: ProposalConfig) -> Self
pub fn rewards_total(self, rewards_total: u64) -> Self
pub fn proposers_rewards(self, proposers_rewards: u64) -> Self
Trait Implementations§
source§impl Clone for ChallengeConfig
impl Clone for ChallengeConfig
source§fn clone(&self) -> ChallengeConfig
fn clone(&self) -> ChallengeConfig
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 Debug for ChallengeConfig
impl Debug for ChallengeConfig
source§impl Default for ChallengeConfig
impl Default for ChallengeConfig
source§fn default() -> ChallengeConfig
fn default() -> ChallengeConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ChallengeConfig
impl Send for ChallengeConfig
impl Sync for ChallengeConfig
impl Unpin for ChallengeConfig
impl UnwindSafe for ChallengeConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more