pub struct VoteBuilder(/* private fields */);Implementations§
Source§impl VoteBuilder
impl VoteBuilder
pub fn new() -> Self
pub fn with_vote( &self, voter: &Voter, gov_action_id: &GovActionId, procedure: &VotingProcedure, ) -> Result<VoteBuilder, JsError>
pub fn with_native_script_vote( &self, voter: &Voter, gov_action_id: &GovActionId, procedure: &VotingProcedure, native_script: NativeScript, witness_info: NativeScriptWitnessInfo, ) -> Result<VoteBuilder, JsError>
pub fn with_plutus_vote( &self, voter: &Voter, gov_action_id: &GovActionId, procedure: &VotingProcedure, partial_witness: &PartialPlutusWitness, required_signers: &RequiredSigners, datum: &PlutusData, ) -> Result<VoteBuilder, JsError>
pub fn with_plutus_vote_inline_datum( &self, voter: &Voter, gov_action_id: &GovActionId, procedure: &VotingProcedure, partial_witness: PartialPlutusWitness, required_signers: RequiredSigners, ) -> Result<VoteBuilder, JsError>
pub fn build(&self) -> VoteBuilderResult
Trait Implementations§
Source§impl AsRef<VoteBuilder> for VoteBuilder
impl AsRef<VoteBuilder> for VoteBuilder
Source§fn as_ref(&self) -> &VoteBuilder
fn as_ref(&self) -> &VoteBuilder
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for VoteBuilder
impl Clone for VoteBuilder
Source§fn clone(&self) -> VoteBuilder
fn clone(&self) -> VoteBuilder
Returns a duplicate 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 moreSource§impl Debug for VoteBuilder
impl Debug for VoteBuilder
Source§impl From<VoteBuilder> for JsValue
impl From<VoteBuilder> for JsValue
Source§fn from(value: VoteBuilder) -> Self
fn from(value: VoteBuilder) -> Self
Converts to this type from the input type.
Source§impl From<VoteBuilder> for VoteBuilder
impl From<VoteBuilder> for VoteBuilder
Source§fn from(native: VoteBuilder) -> Self
fn from(native: VoteBuilder) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for VoteBuilder
impl FromWasmAbi for VoteBuilder
Source§impl Into<VoteBuilder> for VoteBuilder
impl Into<VoteBuilder> for VoteBuilder
Source§fn into(self) -> VoteBuilder
fn into(self) -> VoteBuilder
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for VoteBuilder
impl IntoWasmAbi for VoteBuilder
Source§impl LongRefFromWasmAbi for VoteBuilder
impl LongRefFromWasmAbi for VoteBuilder
Source§impl OptionFromWasmAbi for VoteBuilder
impl OptionFromWasmAbi for VoteBuilder
Source§impl OptionIntoWasmAbi for VoteBuilder
impl OptionIntoWasmAbi for VoteBuilder
Source§impl RefFromWasmAbi for VoteBuilder
impl RefFromWasmAbi for VoteBuilder
Source§type Anchor = RcRef<VoteBuilder>
type Anchor = RcRef<VoteBuilder>
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 RefMutFromWasmAbi for VoteBuilder
impl RefMutFromWasmAbi for VoteBuilder
Source§impl TryFromJsValue for VoteBuilder
impl TryFromJsValue for VoteBuilder
Source§impl VectorFromWasmAbi for VoteBuilder
impl VectorFromWasmAbi for VoteBuilder
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[VoteBuilder]>
Source§impl VectorIntoJsValue for VoteBuilder
impl VectorIntoJsValue for VoteBuilder
fn vector_into_jsvalue(vector: Box<[VoteBuilder]>) -> JsValue
Source§impl VectorIntoWasmAbi for VoteBuilder
impl VectorIntoWasmAbi for VoteBuilder
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[VoteBuilder]>) -> Self::Abi
Source§impl WasmDescribeVector for VoteBuilder
impl WasmDescribeVector for VoteBuilder
impl SupportsConstructor for VoteBuilder
impl SupportsInstanceProperty for VoteBuilder
impl SupportsStaticProperty for VoteBuilder
Auto Trait Implementations§
impl Freeze for VoteBuilder
impl RefUnwindSafe for VoteBuilder
impl Send for VoteBuilder
impl Sync for VoteBuilder
impl Unpin for VoteBuilder
impl UnwindSafe for VoteBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§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.