pub struct TransactionOutputAmountBuilder(/* private fields */);Implementations§
source§impl TransactionOutputAmountBuilder
impl TransactionOutputAmountBuilder
pub fn with_value(&self, amount: &Value) -> Self
pub fn with_asset_and_min_required_coin( &self, multiasset: &MultiAsset, coins_per_utxo_byte: Coin ) -> Result<TransactionOutputAmountBuilder, JsError>
pub fn build(&self) -> Result<SingleOutputBuilderResult, JsError>
Trait Implementations§
source§impl AsRef<TransactionOutputAmountBuilder> for TransactionOutputAmountBuilder
impl AsRef<TransactionOutputAmountBuilder> for TransactionOutputAmountBuilder
source§fn as_ref(&self) -> &TransactionOutputAmountBuilder
fn as_ref(&self) -> &TransactionOutputAmountBuilder
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for TransactionOutputAmountBuilder
impl Clone for TransactionOutputAmountBuilder
source§fn clone(&self) -> TransactionOutputAmountBuilder
fn clone(&self) -> TransactionOutputAmountBuilder
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<TransactionOutputAmountBuilder> for JsValue
impl From<TransactionOutputAmountBuilder> for JsValue
source§fn from(value: TransactionOutputAmountBuilder) -> Self
fn from(value: TransactionOutputAmountBuilder) -> Self
Converts to this type from the input type.
source§impl From<TransactionOutputAmountBuilder> for TransactionOutputAmountBuilder
impl From<TransactionOutputAmountBuilder> for TransactionOutputAmountBuilder
source§fn from(native: TransactionOutputAmountBuilder) -> Self
fn from(native: TransactionOutputAmountBuilder) -> Self
Converts to this type from the input type.
source§impl Into<TransactionOutputAmountBuilder> for TransactionOutputAmountBuilder
impl Into<TransactionOutputAmountBuilder> for TransactionOutputAmountBuilder
source§fn into(self) -> TransactionOutputAmountBuilder
fn into(self) -> TransactionOutputAmountBuilder
Converts this type into the (usually inferred) input type.
source§impl RefFromWasmAbi for TransactionOutputAmountBuilder
impl RefFromWasmAbi for TransactionOutputAmountBuilder
§type Anchor = Ref<'static, TransactionOutputAmountBuilder>
type Anchor = Ref<'static, TransactionOutputAmountBuilder>
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 TransactionOutputAmountBuilder
impl RefUnwindSafe for TransactionOutputAmountBuilder
impl Send for TransactionOutputAmountBuilder
impl Sync for TransactionOutputAmountBuilder
impl Unpin for TransactionOutputAmountBuilder
impl UnwindSafe for TransactionOutputAmountBuilder
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.