pub struct ScenarioBuilder {
config: ConfigBuilder,
initials: Option<Vec<WalletTemplateBuilder>>,
stake_pools: Option<Vec<StakePoolDefBuilder>>,
vote_plans: Vec<VotePlanDefBuilder>,
}
Fields§
§config: ConfigBuilder
§initials: Option<Vec<WalletTemplateBuilder>>
§stake_pools: Option<Vec<StakePoolDefBuilder>>
§vote_plans: Vec<VotePlanDefBuilder>
Implementations§
source§impl ScenarioBuilder
impl ScenarioBuilder
pub fn with_config(&mut self, config: ConfigBuilder) -> &mut Self
pub fn with_initials( &mut self, initials: Vec<&mut WalletTemplateBuilder> ) -> &mut Self
pub fn with_vote_plans( &mut self, vote_plans: Vec<&mut VotePlanDefBuilder> ) -> &mut Self
pub fn with_stake_pools( &mut self, stake_pools: Vec<&mut StakePoolDefBuilder> ) -> &mut Self
pub fn build(&self) -> Result<(TestLedger, Controller), ScenarioBuilderError>
fn build_stake_pools_fragments( &self, stake_pools: &[StakePool], wallets: &[Wallet] ) -> Vec<Fragment>
fn build_delegation_fragments( &self, initials: &[WalletTemplate], stake_pools: &[StakePool], wallets: &[Wallet] ) -> Vec<Fragment>
fn build_stake_pools( &self, stake_pool_templates: Vec<StakePoolTemplate> ) -> Vec<StakePool>
fn build_stake_pool(&self, template: StakePoolTemplate) -> StakePool
Auto Trait Implementations§
impl RefUnwindSafe for ScenarioBuilder
impl Send for ScenarioBuilder
impl Sync for ScenarioBuilder
impl Unpin for ScenarioBuilder
impl UnwindSafe for ScenarioBuilder
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