Struct chain_impl_mockchain::testing::scenario::template::builders::StakePoolTemplateBuilder
source · pub struct StakePoolTemplateBuilder {
ownership_map: HashMap<String, HashSet<WalletTemplate>>,
delegation_map: HashMap<String, HashSet<WalletTemplate>>,
}
Fields§
§ownership_map: HashMap<String, HashSet<WalletTemplate>>
§delegation_map: HashMap<String, HashSet<WalletTemplate>>
Implementations§
source§impl StakePoolTemplateBuilder
impl StakePoolTemplateBuilder
pub fn new(initials: &[WalletTemplate]) -> Self
pub fn build_stake_pool_templates( &self, wallets: Vec<Wallet> ) -> Result<Vec<StakePoolTemplate>, ScenarioBuilderError>
pub fn defined_stake_pools_aliases(&self) -> HashSet<String>
fn build_ownersip_map( initials: &[WalletTemplate] ) -> HashMap<String, HashSet<WalletTemplate>>
fn build_delegation_map( initials: &[WalletTemplate] ) -> HashMap<String, HashSet<WalletTemplate>>
Auto Trait Implementations§
impl RefUnwindSafe for StakePoolTemplateBuilder
impl Send for StakePoolTemplateBuilder
impl Sync for StakePoolTemplateBuilder
impl Unpin for StakePoolTemplateBuilder
impl UnwindSafe for StakePoolTemplateBuilder
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