pub struct ArbitrarySnapshotGenerator {
id_generator: ArbitraryGenerator,
template_generator: ArbitraryValidVotingTemplateGenerator,
}
Fields§
§id_generator: ArbitraryGenerator
§template_generator: ArbitraryValidVotingTemplateGenerator
Implementations§
source§impl ArbitrarySnapshotGenerator
impl ArbitrarySnapshotGenerator
pub fn funds(&mut self) -> Vec<Fund>
fn gen_single_fund(&mut self) -> Fund
fn gen_single_proposal(&mut self, fund: &Fund) -> FullProposalInfo
fn fund_date_times(&self) -> FundDateTimes
fn voteplan_date_times(&self) -> VoteplanDateTimes
pub fn voteplans(&mut self, funds: &[Fund]) -> Vec<Voteplan>
pub fn challenges(&mut self, funds: &[Fund]) -> Vec<Challenge>
pub fn token(&mut self) -> (String, ApiTokenData)
pub fn proposals(&mut self, funds: &[Fund]) -> Vec<FullProposalInfo>
pub fn advisor_reviews( &mut self, funds: &[FullProposalInfo] ) -> Vec<AdvisorReview>
pub fn goals(&mut self, funds: &[Fund]) -> Vec<Goal>
pub fn voteplan_with_fund_id(&mut self, fund_id: i32) -> Voteplan
pub fn challenges_with_fund_id(&mut self, fund_id: i32) -> Vec<Challenge>
pub fn challenge_with_fund_id(&mut self, fund_id: i32) -> Challenge
pub fn goals_with_fund_id(&mut self, fund_id: i32) -> Vec<Goal>
pub fn review_with_proposal_id(&mut self, proposal_id: i32) -> AdvisorReview
pub fn snapshot(&mut self) -> Snapshot
Trait Implementations§
source§impl Clone for ArbitrarySnapshotGenerator
impl Clone for ArbitrarySnapshotGenerator
source§fn clone(&self) -> ArbitrarySnapshotGenerator
fn clone(&self) -> ArbitrarySnapshotGenerator
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ArbitrarySnapshotGenerator
impl Send for ArbitrarySnapshotGenerator
impl Sync for ArbitrarySnapshotGenerator
impl Unpin for ArbitrarySnapshotGenerator
impl UnwindSafe for ArbitrarySnapshotGenerator
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