Struct chain_impl_mockchain::testing::scenario::template::StakePoolDefBuilder
source · pub struct StakePoolDefBuilder {
alias: String,
permissions_threshold: u8,
reward_account: bool,
tax_type: Option<TaxType>,
}
Fields§
§alias: String
§permissions_threshold: u8
§reward_account: bool
§tax_type: Option<TaxType>
Implementations§
source§impl StakePoolDefBuilder
impl StakePoolDefBuilder
pub fn new(alias: &str) -> Self
pub fn with_permissions_threshold(&mut self, threshold: u8) -> &mut Self
pub fn with_reward_account(&mut self, reward_account: bool) -> &mut Self
pub fn tax_ratio(&mut self, numerator: u64, denominator: u64) -> &mut Self
pub fn tax_limit(&mut self, limit: u64) -> &mut Self
pub fn fixed_tax(&mut self, value: u64) -> &mut Self
pub fn no_tax(&mut self) -> &mut Self
pub fn build(&self) -> StakePoolDef
Trait Implementations§
source§impl Clone for StakePoolDefBuilder
impl Clone for StakePoolDefBuilder
source§fn clone(&self) -> StakePoolDefBuilder
fn clone(&self) -> StakePoolDefBuilder
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 StakePoolDefBuilder
impl Send for StakePoolDefBuilder
impl Sync for StakePoolDefBuilder
impl Unpin for StakePoolDefBuilder
impl UnwindSafe for StakePoolDefBuilder
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