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§
sourcefn 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<'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
sourcefn 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,
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