Struct wallet_wasm_js::VoteCastTxBuilder
source · pub struct VoteCastTxBuilder(pub(crate) TxBuilder<VoteCast>);
Tuple Fields§
§0: TxBuilder<VoteCast>
Implementations§
source§impl VoteCastTxBuilder
impl VoteCastTxBuilder
sourcepub fn new(settings: Settings, vote_cast: VoteCast) -> VoteCastTxBuilder
pub fn new(settings: Settings, vote_cast: VoteCast) -> VoteCastTxBuilder
Initializing of the VoteCastTxBuilder
sourcepub fn prepare_tx(
self,
hex_account_id: String
) -> Result<VoteCastTxBuilder, JsValue>
pub fn prepare_tx( self, hex_account_id: String ) -> Result<VoteCastTxBuilder, JsValue>
First step of the VoteCast transaction building process
The account
parameter gives the Ed25519Extended private key
of the account.
Trait Implementations§
source§impl From<VoteCastTxBuilder> for JsValue
impl From<VoteCastTxBuilder> for JsValue
source§fn from(value: VoteCastTxBuilder) -> Self
fn from(value: VoteCastTxBuilder) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for VoteCastTxBuilder
impl FromWasmAbi for VoteCastTxBuilder
source§impl IntoWasmAbi for VoteCastTxBuilder
impl IntoWasmAbi for VoteCastTxBuilder
source§impl RefFromWasmAbi for VoteCastTxBuilder
impl RefFromWasmAbi for VoteCastTxBuilder
§type Anchor = Ref<'static, VoteCastTxBuilder>
type Anchor = Ref<'static, VoteCastTxBuilder>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl WasmDescribe for VoteCastTxBuilder
impl WasmDescribe for VoteCastTxBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for VoteCastTxBuilder
impl !Send for VoteCastTxBuilder
impl !Sync for VoteCastTxBuilder
impl Unpin for VoteCastTxBuilder
impl !UnwindSafe for VoteCastTxBuilder
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>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.