Trait dash_sdk::platform::transition::vote::PutVote

source ·
pub trait PutVote<S: Signer> {
    // Required methods
    fn put_to_platform<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        voter_pro_tx_hash: Identifier,
        voting_public_key: &'life1 IdentityPublicKey,
        sdk: &'life2 Sdk,
        signer: &'life3 S,
        settings: Option<PutSettings>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn put_to_platform_and_wait_for_response<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        voter_pro_tx_hash: Identifier,
        voting_public_key: &'life1 IdentityPublicKey,
        sdk: &'life2 Sdk,
        signer: &'life3 S,
        settings: Option<PutSettings>,
    ) -> Pin<Box<dyn Future<Output = Result<Vote, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

A trait for putting a vote on platform

Required Methods§

source

fn put_to_platform<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, voter_pro_tx_hash: Identifier, voting_public_key: &'life1 IdentityPublicKey, sdk: &'life2 Sdk, signer: &'life3 S, settings: Option<PutSettings>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Puts an identity on platform

source

fn put_to_platform_and_wait_for_response<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, voter_pro_tx_hash: Identifier, voting_public_key: &'life1 IdentityPublicKey, sdk: &'life2 Sdk, signer: &'life3 S, settings: Option<PutSettings>, ) -> Pin<Box<dyn Future<Output = Result<Vote, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Puts an identity on platform and waits for the confirmation proof

Implementations on Foreign Types§

source§

impl<S: Signer> PutVote<S> for Vote

source§

fn put_to_platform<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, voter_pro_tx_hash: Identifier, voting_public_key: &'life1 IdentityPublicKey, sdk: &'life2 Sdk, signer: &'life3 S, settings: Option<PutSettings>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source§

fn put_to_platform_and_wait_for_response<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, voter_pro_tx_hash: Identifier, voting_public_key: &'life1 IdentityPublicKey, sdk: &'life2 Sdk, signer: &'life3 S, settings: Option<PutSettings>, ) -> Pin<Box<dyn Future<Output = Result<Vote, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§