pub struct ExternalValidVotingTemplateGenerator {
proposals: LinkedList<ProposalTemplate>,
challenges: LinkedList<ChallengeTemplate>,
funds: LinkedList<FundTemplate>,
reviews: LinkedList<ReviewTemplate>,
}
Fields§
§proposals: LinkedList<ProposalTemplate>
§challenges: LinkedList<ChallengeTemplate>
§funds: LinkedList<FundTemplate>
§reviews: LinkedList<ReviewTemplate>
Implementations§
source§impl ExternalValidVotingTemplateGenerator
impl ExternalValidVotingTemplateGenerator
pub fn new( proposals: PathBuf, challenges: PathBuf, funds: PathBuf, reviews: PathBuf ) -> Result<Self, TemplateLoad>
pub fn proposals_count(&self) -> usize
pub fn challenges_count(&self) -> usize
Trait Implementations§
source§impl Clone for ExternalValidVotingTemplateGenerator
impl Clone for ExternalValidVotingTemplateGenerator
source§fn clone(&self) -> ExternalValidVotingTemplateGenerator
fn clone(&self) -> ExternalValidVotingTemplateGenerator
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 ExternalValidVotingTemplateGenerator
impl ValidVotingTemplateGenerator for ExternalValidVotingTemplateGenerator
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 ExternalValidVotingTemplateGenerator
impl Send for ExternalValidVotingTemplateGenerator
impl Sync for ExternalValidVotingTemplateGenerator
impl Unpin for ExternalValidVotingTemplateGenerator
impl UnwindSafe for ExternalValidVotingTemplateGenerator
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