pub struct ProposalBuilder(/* private fields */);Implementations§
Source§impl ProposalBuilder
impl ProposalBuilder
pub fn new() -> Self
pub fn with_proposal( &self, proposal: ProposalProcedure, ) -> Result<ProposalBuilder, JsError>
pub fn with_native_script_proposal( &self, proposal: ProposalProcedure, native_script: NativeScript, witness_info: NativeScriptWitnessInfo, ) -> Result<ProposalBuilder, JsError>
pub fn with_plutus_proposal( &self, proposal: &ProposalProcedure, partial_witness: &PartialPlutusWitness, required_signers: &RequiredSigners, datum: &PlutusData, ) -> Result<ProposalBuilder, JsError>
pub fn with_plutus_proposal_inline_datum( &self, proposal: ProposalProcedure, partial_witness: PartialPlutusWitness, required_signers: RequiredSigners, ) -> Result<ProposalBuilder, JsError>
pub fn build(&self) -> ProposalBuilderResult
Trait Implementations§
Source§impl AsRef<ProposalBuilder> for ProposalBuilder
impl AsRef<ProposalBuilder> for ProposalBuilder
Source§fn as_ref(&self) -> &ProposalBuilder
fn as_ref(&self) -> &ProposalBuilder
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ProposalBuilder
impl Clone for ProposalBuilder
Source§fn clone(&self) -> ProposalBuilder
fn clone(&self) -> ProposalBuilder
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 ProposalBuilder
impl Debug for ProposalBuilder
Source§impl From<ProposalBuilder> for JsValue
impl From<ProposalBuilder> for JsValue
Source§fn from(value: ProposalBuilder) -> Self
fn from(value: ProposalBuilder) -> Self
Converts to this type from the input type.
Source§impl From<ProposalBuilder> for ProposalBuilder
impl From<ProposalBuilder> for ProposalBuilder
Source§fn from(native: ProposalBuilder) -> Self
fn from(native: ProposalBuilder) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ProposalBuilder
impl FromWasmAbi for ProposalBuilder
Source§impl Into<ProposalBuilder> for ProposalBuilder
impl Into<ProposalBuilder> for ProposalBuilder
Source§fn into(self) -> ProposalBuilder
fn into(self) -> ProposalBuilder
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for ProposalBuilder
impl IntoWasmAbi for ProposalBuilder
Source§impl LongRefFromWasmAbi for ProposalBuilder
impl LongRefFromWasmAbi for ProposalBuilder
Source§impl OptionFromWasmAbi for ProposalBuilder
impl OptionFromWasmAbi for ProposalBuilder
Source§impl OptionIntoWasmAbi for ProposalBuilder
impl OptionIntoWasmAbi for ProposalBuilder
Source§impl RefFromWasmAbi for ProposalBuilder
impl RefFromWasmAbi for ProposalBuilder
Source§type Anchor = RcRef<ProposalBuilder>
type Anchor = RcRef<ProposalBuilder>
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 ProposalBuilder
impl RefMutFromWasmAbi for ProposalBuilder
Source§impl TryFromJsValue for ProposalBuilder
impl TryFromJsValue for ProposalBuilder
Source§impl VectorFromWasmAbi for ProposalBuilder
impl VectorFromWasmAbi for ProposalBuilder
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ProposalBuilder]>
Source§impl VectorIntoJsValue for ProposalBuilder
impl VectorIntoJsValue for ProposalBuilder
fn vector_into_jsvalue(vector: Box<[ProposalBuilder]>) -> JsValue
Source§impl VectorIntoWasmAbi for ProposalBuilder
impl VectorIntoWasmAbi for ProposalBuilder
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ProposalBuilder]>) -> Self::Abi
Source§impl WasmDescribeVector for ProposalBuilder
impl WasmDescribeVector for ProposalBuilder
impl SupportsConstructor for ProposalBuilder
impl SupportsInstanceProperty for ProposalBuilder
impl SupportsStaticProperty for ProposalBuilder
Auto Trait Implementations§
impl Freeze for ProposalBuilder
impl RefUnwindSafe for ProposalBuilder
impl Send for ProposalBuilder
impl Sync for ProposalBuilder
impl Unpin for ProposalBuilder
impl UnwindSafe for ProposalBuilder
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.