pub struct RegistrationTransactionBuilder<'a> {
wallet: &'a CardanoWallet,
delegations: Option<Delegations>,
slot_no: u64,
}
Expand description
Responsible for building registration transaction metadata
Fields§
§wallet: &'a CardanoWallet
§delegations: Option<Delegations>
§slot_no: u64
Implementations§
source§impl<'a> RegistrationTransactionBuilder<'a>
impl<'a> RegistrationTransactionBuilder<'a>
sourcepub fn new(wallet: &'a CardanoWallet) -> Self
pub fn new(wallet: &'a CardanoWallet) -> Self
Creates registration builder for given wallet
sourcepub fn to(self, delegations: Delegations) -> Self
pub fn to(self, delegations: Delegations) -> Self
Defines registration target (self or delegated)
sourcepub fn on(self, slot_no: u64) -> Self
pub fn on(self, slot_no: u64) -> Self
Defines slot number for registration transaction. This will be used as nonce
sourcefn build_metadata(&self) -> GeneralTransactionMetadata
fn build_metadata(&self) -> GeneralTransactionMetadata
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RegistrationTransactionBuilder<'a>
impl<'a> Send for RegistrationTransactionBuilder<'a>
impl<'a> Sync for RegistrationTransactionBuilder<'a>
impl<'a> Unpin for RegistrationTransactionBuilder<'a>
impl<'a> UnwindSafe for RegistrationTransactionBuilder<'a>
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