Struct cml_chain_wasm::builders::input_builder::SingleInputBuilder
source · pub struct SingleInputBuilder(/* private fields */);Implementations§
source§impl SingleInputBuilder
impl SingleInputBuilder
pub fn new(input: &TransactionInput, utxo_info: &TransactionOutput) -> Self
pub fn from_transaction_unspent_output(utxo: &TransactionUnspentOutput) -> Self
pub fn payment_key(&self) -> Result<InputBuilderResult, JsError>
pub fn native_script( &self, native_script: &NativeScript, witness_info: &NativeScriptWitnessInfo ) -> Result<InputBuilderResult, JsError>
pub fn plutus_script( &self, partial_witness: &PartialPlutusWitness, required_signers: &RequiredSigners, datum: &PlutusData ) -> Result<InputBuilderResult, JsError>
pub fn plutus_script_inline_datum( &self, partial_witness: &PartialPlutusWitness, required_signers: &RequiredSigners ) -> Result<InputBuilderResult, JsError>
Trait Implementations§
source§impl AsRef<SingleInputBuilder> for SingleInputBuilder
impl AsRef<SingleInputBuilder> for SingleInputBuilder
source§fn as_ref(&self) -> &SingleInputBuilder
fn as_ref(&self) -> &SingleInputBuilder
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SingleInputBuilder
impl Clone for SingleInputBuilder
source§fn clone(&self) -> SingleInputBuilder
fn clone(&self) -> SingleInputBuilder
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 moresource§impl From<SingleInputBuilder> for JsValue
impl From<SingleInputBuilder> for JsValue
source§fn from(value: SingleInputBuilder) -> Self
fn from(value: SingleInputBuilder) -> Self
Converts to this type from the input type.
source§impl From<SingleInputBuilder> for SingleInputBuilder
impl From<SingleInputBuilder> for SingleInputBuilder
source§fn from(native: SingleInputBuilder) -> Self
fn from(native: SingleInputBuilder) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for SingleInputBuilder
impl FromWasmAbi for SingleInputBuilder
source§impl Into<SingleInputBuilder> for SingleInputBuilder
impl Into<SingleInputBuilder> for SingleInputBuilder
source§fn into(self) -> SingleInputBuilder
fn into(self) -> SingleInputBuilder
Converts this type into the (usually inferred) input type.
source§impl IntoWasmAbi for SingleInputBuilder
impl IntoWasmAbi for SingleInputBuilder
source§impl RefFromWasmAbi for SingleInputBuilder
impl RefFromWasmAbi for SingleInputBuilder
§type Anchor = Ref<'static, SingleInputBuilder>
type Anchor = Ref<'static, SingleInputBuilder>
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.Auto Trait Implementations§
impl Freeze for SingleInputBuilder
impl RefUnwindSafe for SingleInputBuilder
impl Send for SingleInputBuilder
impl Sync for SingleInputBuilder
impl Unpin for SingleInputBuilder
impl UnwindSafe for SingleInputBuilder
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> 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,
§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.