Struct chain_impl_mockchain::testing::scenario::template::ProposalDefBuilder
source · pub struct ProposalDefBuilder {
id: ExternalProposalId,
options: u8,
action_type: VoteAction,
}
Fields§
§id: ExternalProposalId
§options: u8
§action_type: VoteAction
Implementations§
source§impl ProposalDefBuilder
impl ProposalDefBuilder
pub fn new(id: ExternalProposalId) -> Self
pub fn options(&mut self, options: u8) -> &mut Self
pub fn action_off_chain(&mut self) -> &mut Self
pub fn action_rewards_add(&mut self, value: u64) -> &mut Self
pub fn action_transfer_to_rewards(&mut self, value: u64) -> &mut Self
pub fn action_parameters_no_op(&mut self) -> &mut Self
pub fn build(self) -> ProposalDef
Trait Implementations§
source§impl Clone for ProposalDefBuilder
impl Clone for ProposalDefBuilder
source§fn clone(&self) -> ProposalDefBuilder
fn clone(&self) -> ProposalDefBuilder
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 ProposalDefBuilder
impl Send for ProposalDefBuilder
impl Sync for ProposalDefBuilder
impl Unpin for ProposalDefBuilder
impl UnwindSafe for ProposalDefBuilder
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