Struct vit_servicing_station_tests::common::data::generator::voting::builder::ArbitraryValidVotePlanConfig
source · pub struct ArbitraryValidVotePlanConfig {
template_generator: ArbitraryValidVotingTemplateGenerator,
challenges: Vec<ChallengeConfig>,
}
Fields§
§template_generator: ArbitraryValidVotingTemplateGenerator
§challenges: Vec<ChallengeConfig>
Implementations§
source§impl ArbitraryValidVotePlanConfig
impl ArbitraryValidVotePlanConfig
pub fn challenges(self, challenges: Vec<ChallengeConfig>) -> Self
pub fn get_challenges(&self) -> &[ChallengeConfig]
pub fn challenge(self, challenge: ChallengeConfig) -> Self
pub fn pop_proposal(&mut self) -> ProposalConfig
Trait Implementations§
source§impl Clone for ArbitraryValidVotePlanConfig
impl Clone for ArbitraryValidVotePlanConfig
source§fn clone(&self) -> ArbitraryValidVotePlanConfig
fn clone(&self) -> ArbitraryValidVotePlanConfig
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 Default for ArbitraryValidVotePlanConfig
impl Default for ArbitraryValidVotePlanConfig
source§fn default() -> ArbitraryValidVotePlanConfig
fn default() -> ArbitraryValidVotePlanConfig
Returns the “default value” for a type. Read more
source§impl ValidVotingTemplateGenerator for ArbitraryValidVotePlanConfig
impl ValidVotingTemplateGenerator for ArbitraryValidVotePlanConfig
fn next_proposal(&mut self) -> ProposalTemplate
fn next_challenge(&mut self) -> ChallengeTemplate
fn next_fund(&mut self) -> FundTemplate
fn next_review(&mut self) -> ReviewTemplate
Auto Trait Implementations§
impl RefUnwindSafe for ArbitraryValidVotePlanConfig
impl Send for ArbitraryValidVotePlanConfig
impl Sync for ArbitraryValidVotePlanConfig
impl Unpin for ArbitraryValidVotePlanConfig
impl UnwindSafe for ArbitraryValidVotePlanConfig
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