pub struct CoinSelectionResult {
pub selected: Vec<Utxo>,
pub fee_amount: Amount,
pub excess: Excess,
}
Expand description
Result of a successful coin selection
Fields§
§selected: Vec<Utxo>
List of outputs selected for use as inputs
fee_amount: Amount
Total fee amount for the selected utxos
excess: Excess
Remaining amount after deducing fees and outgoing outputs
Implementations§
Source§impl CoinSelectionResult
impl CoinSelectionResult
Sourcepub fn selected_amount(&self) -> Amount
pub fn selected_amount(&self) -> Amount
The total value of the inputs selected.
Sourcepub fn local_selected_amount(&self) -> Amount
pub fn local_selected_amount(&self) -> Amount
The total value of the inputs selected from the local wallet.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoinSelectionResult
impl RefUnwindSafe for CoinSelectionResult
impl Send for CoinSelectionResult
impl Sync for CoinSelectionResult
impl Unpin for CoinSelectionResult
impl UnwindSafe for CoinSelectionResult
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