[][src]Trait sunshine_util::traits::ManageVoteSchedule

pub trait ManageVoteSchedule: SetDefaultShareApprovalOrder {
    type VoteSchedule: GetCurrentVoteIdentifiers;
    fn dispatch_vote_schedule_from_vec_of_share_id(
        organization: u32,
        proposal_type: Self::ProposalType,
        share_ids: Vec<u32>
    ) -> Result<Self::VoteSchedule, DispatchError>;
fn move_to_next_scheduled_vote(
        organization: u32,
        schedule: Self::VoteSchedule
    ) -> Result<Option<Self::VoteSchedule>, DispatchError>; }

Manages live vote schedules

Associated Types

Loading content...

Required methods

fn dispatch_vote_schedule_from_vec_of_share_id(
    organization: u32,
    proposal_type: Self::ProposalType,
    share_ids: Vec<u32>
) -> Result<Self::VoteSchedule, DispatchError>

fn move_to_next_scheduled_vote(
    organization: u32,
    schedule: Self::VoteSchedule
) -> Result<Option<Self::VoteSchedule>, DispatchError>

Moves the vote schedule to the next scheduled vote in the sequence

Loading content...

Implementors

Loading content...