Struct tg_test_utils::RulesBuilder
source · [−]pub struct RulesBuilder {
pub voting_period: u32,
pub quorum: Decimal,
pub threshold: Decimal,
pub allow_end_early: bool,
}Fields
voting_period: u32quorum: Decimalthreshold: Decimalallow_end_early: boolImplementations
sourceimpl RulesBuilder
impl RulesBuilder
pub fn new() -> Self
pub fn with_threshold(self, threshold: impl Into<Decimal>) -> Self
pub fn with_quorum(self, quorum: impl Into<Decimal>) -> Self
pub fn build(&self) -> VotingRules
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RulesBuilder
impl Send for RulesBuilder
impl Sync for RulesBuilder
impl Unpin for RulesBuilder
impl UnwindSafe for RulesBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more