Enum tx_bakery::CollateralStrategy
source · pub enum CollateralStrategy {
Automatic {
min_amount: u64,
max_utxo_count: usize,
},
Explicit {
utxos: Vec<TxInInfo>,
min_amount: u64,
},
None,
}
Expand description
Options to deal with collateral selection
Variants§
Automatic
Automatically pick a suitable UTxO from the transaction inputs
Explicit
Explicitly set a UTxO (doesn’t have to be an input UTxO)
None
No collateral (for transaction without scripts)
Trait Implementations§
source§impl Clone for CollateralStrategy
impl Clone for CollateralStrategy
source§fn clone(&self) -> CollateralStrategy
fn clone(&self) -> CollateralStrategy
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 moreAuto Trait Implementations§
impl Freeze for CollateralStrategy
impl RefUnwindSafe for CollateralStrategy
impl Send for CollateralStrategy
impl Sync for CollateralStrategy
impl Unpin for CollateralStrategy
impl UnwindSafe for CollateralStrategy
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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