pub struct KeyRegistrationTransactionBuilder { /* private fields */ }
Expand description
Builder for KeyRegistrationTransactionFields
.
Implementations§
Source§impl KeyRegistrationTransactionBuilder
impl KeyRegistrationTransactionBuilder
Sourcepub fn header(&mut self, value: TransactionHeader) -> &mut Self
pub fn header(&mut self, value: TransactionHeader) -> &mut Self
Common transaction header fields.
Sourcepub fn vote_key(&mut self, value: [u8; 32]) -> &mut Self
pub fn vote_key(&mut self, value: [u8; 32]) -> &mut Self
Root participation public key (32 bytes).
Sourcepub fn selection_key(&mut self, value: [u8; 32]) -> &mut Self
pub fn selection_key(&mut self, value: [u8; 32]) -> &mut Self
VRF public key (32 bytes).
Sourcepub fn state_proof_key(&mut self, value: [u8; 64]) -> &mut Self
pub fn state_proof_key(&mut self, value: [u8; 64]) -> &mut Self
State proof key (64 bytes).
Sourcepub fn vote_first(&mut self, value: u64) -> &mut Self
pub fn vote_first(&mut self, value: u64) -> &mut Self
First round for which the participation key is valid.
Sourcepub fn vote_last(&mut self, value: u64) -> &mut Self
pub fn vote_last(&mut self, value: u64) -> &mut Self
Last round for which the participation key is valid.
Sourcepub fn vote_key_dilution(&mut self, value: u64) -> &mut Self
pub fn vote_key_dilution(&mut self, value: u64) -> &mut Self
Key dilution for the 2-level participation key.
Sourcepub fn non_participation(&mut self, value: bool) -> &mut Self
pub fn non_participation(&mut self, value: bool) -> &mut Self
Mark account as non-reward earning.
Sourcepub fn build_fields(
&self,
) -> Result<KeyRegistrationTransactionFields, KeyRegistrationTransactionBuilderError>
pub fn build_fields( &self, ) -> Result<KeyRegistrationTransactionFields, KeyRegistrationTransactionBuilderError>
Builds a new KeyRegistrationTransactionFields
.
§Errors
If a required field has not been initialized.
Source§impl KeyRegistrationTransactionBuilder
impl KeyRegistrationTransactionBuilder
pub fn build( &self, ) -> Result<Transaction, KeyRegistrationTransactionBuilderError>
Trait Implementations§
Source§impl Clone for KeyRegistrationTransactionBuilder
impl Clone for KeyRegistrationTransactionBuilder
Source§fn clone(&self) -> KeyRegistrationTransactionBuilder
fn clone(&self) -> KeyRegistrationTransactionBuilder
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 Freeze for KeyRegistrationTransactionBuilder
impl RefUnwindSafe for KeyRegistrationTransactionBuilder
impl Send for KeyRegistrationTransactionBuilder
impl Sync for KeyRegistrationTransactionBuilder
impl Unpin for KeyRegistrationTransactionBuilder
impl UnwindSafe for KeyRegistrationTransactionBuilder
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