Struct vit_servicing_station_tests_f10::common::data::generator::voting::parameters::fund::current::CurrentFund
source · pub struct CurrentFund {
pub vote_plans: Vec<SingleVotePlanParameters>,
pub vote_options: VoteOptions,
pub challenges_count: usize,
pub reviews_count: usize,
pub calculate_challenges_total_funds: bool,
pub info: FundInfo,
}
Fields§
§vote_plans: Vec<SingleVotePlanParameters>
§vote_options: VoteOptions
§challenges_count: usize
§reviews_count: usize
§calculate_challenges_total_funds: bool
§info: FundInfo
Implementations§
source§impl CurrentFund
impl CurrentFund
pub fn from_single(vote_plan: VotePlanDef, info: FundInfo) -> Self
pub fn new(vote_plans: Vec<VotePlanDef>, info: FundInfo) -> Self
pub fn set_vote_encryption_key( &mut self, vote_encryption_key: String, alias: &str )
pub fn to_fund( &self, vote_plans: Vec<Voteplan>, challenges: Vec<Challenge> ) -> Fund
Trait Implementations§
source§impl From<CurrentFund> for ValidVotePlanParameters
impl From<CurrentFund> for ValidVotePlanParameters
source§fn from(current_fund: CurrentFund) -> Self
fn from(current_fund: CurrentFund) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for CurrentFund
impl Send for CurrentFund
impl Sync for CurrentFund
impl Unpin for CurrentFund
impl UnwindSafe for CurrentFund
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