pub struct ArbitraryValidVotingTemplateGenerator {
pub(crate) generator: ArbitraryGenerator,
pub(crate) funds: Vec<FundTemplate>,
pub(crate) challenges: Vec<ChallengeTemplate>,
pub(crate) proposals: Vec<ProposalTemplate>,
pub(crate) reviews: Vec<ReviewTemplate>,
pub(crate) next_proposal_id: i32,
pub(crate) next_challenge_id: i32,
pub(crate) next_review_id: i32,
}
Fields§
§generator: ArbitraryGenerator
§funds: Vec<FundTemplate>
§challenges: Vec<ChallengeTemplate>
§proposals: Vec<ProposalTemplate>
§reviews: Vec<ReviewTemplate>
§next_proposal_id: i32
§next_challenge_id: i32
§next_review_id: i32
Implementations§
source§impl ArbitraryValidVotingTemplateGenerator
impl ArbitraryValidVotingTemplateGenerator
pub fn new() -> Self
pub fn next_challenge_id(&mut self) -> i32
pub fn next_proposal_id(&mut self) -> i32
pub fn next_review_id(&mut self) -> i32
pub fn gen_http_address(&self) -> String
pub fn gen_challenge_url(&mut self) -> String
pub fn gen_highlights(&mut self) -> Option<ChallengeHighlights>
pub fn proposer(&mut self) -> Proposer
pub fn impact_score(&mut self) -> i64
pub fn proposal_category(&mut self) -> Category
pub fn proposal_fund(&mut self) -> i64
pub fn challenge_type(&mut self) -> ChallengeType
pub fn proposals_challenge_info( &mut self, challenge_type: &ChallengeType ) -> ProposalChallengeInfo
pub fn proposal( &mut self, challenge: ChallengeTemplate, funds: i64 ) -> ProposalTemplate
Trait Implementations§
source§impl Clone for ArbitraryValidVotingTemplateGenerator
impl Clone for ArbitraryValidVotingTemplateGenerator
source§fn clone(&self) -> ArbitraryValidVotingTemplateGenerator
fn clone(&self) -> ArbitraryValidVotingTemplateGenerator
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 ValidVotingTemplateGenerator for ArbitraryValidVotingTemplateGenerator
impl ValidVotingTemplateGenerator for ArbitraryValidVotingTemplateGenerator
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 ArbitraryValidVotingTemplateGenerator
impl Send for ArbitraryValidVotingTemplateGenerator
impl Sync for ArbitraryValidVotingTemplateGenerator
impl Unpin for ArbitraryValidVotingTemplateGenerator
impl UnwindSafe for ArbitraryValidVotingTemplateGenerator
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