Struct jormungandr_automation::testing::vit::VotePlanBuilder
source · pub struct VotePlanBuilder {
proposals_builder: ProposalsBuilder,
action: VoteAction,
payload: PayloadType,
member_keys: Vec<MemberPublicKey>,
vote_start: BlockDate,
tally_start: BlockDate,
tally_end: BlockDate,
voting_token: TokenIdentifier,
options_size: u8,
}
Fields§
§proposals_builder: ProposalsBuilder
§action: VoteAction
§payload: PayloadType
§member_keys: Vec<MemberPublicKey>
§vote_start: BlockDate
§tally_start: BlockDate
§tally_end: BlockDate
§voting_token: TokenIdentifier
§options_size: u8
Implementations§
source§impl VotePlanBuilder
impl VotePlanBuilder
pub fn new() -> Self
pub fn proposals_count(self, proposals_count: usize) -> Self
pub fn proposals_external_ids( self, proposals_ids: Vec<ExternalProposalId> ) -> Self
pub fn action_type(self, action: VoteAction) -> Self
pub fn private(self) -> Self
pub fn public(self) -> Self
pub fn member_public_key(self, key: MemberPublicKey) -> Self
pub fn member_public_keys(self, keys: Vec<MemberPublicKey>) -> Self
pub fn vote_start(self, block_date: BlockDate) -> Self
pub fn tally_start(self, block_date: BlockDate) -> Self
pub fn tally_end(self, block_date: BlockDate) -> Self
pub fn voting_token(self, voting_token: TokenIdentifier) -> Self
pub fn options_size(self, size: u8) -> Self
pub fn build(self) -> VotePlan
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for VotePlanBuilder
impl Send for VotePlanBuilder
impl Sync for VotePlanBuilder
impl Unpin for VotePlanBuilder
impl UnwindSafe for VotePlanBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request