Struct cml_chain::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 payment_key(self) -> Result<InputBuilderResult, InputBuilderError>
pub fn native_script( self, native_script: NativeScript, witness_info: NativeScriptWitnessInfo ) -> Result<InputBuilderResult, InputBuilderError>
pub fn plutus_script( self, partial_witness: PartialPlutusWitness, required_signers: RequiredSigners, datum: PlutusData ) -> Result<InputBuilderResult, InputBuilderError>
pub fn plutus_script_inline_datum( self, partial_witness: PartialPlutusWitness, required_signers: RequiredSigners ) -> Result<InputBuilderResult, InputBuilderError>
Trait Implementations§
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<TransactionUnspentOutput> for SingleInputBuilder
impl From<TransactionUnspentOutput> for SingleInputBuilder
source§fn from(utxo: TransactionUnspentOutput) -> Self
fn from(utxo: TransactionUnspentOutput) -> Self
Converts to this type from the input type.
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 more