pub enum ExcessStrategy {
ToFee,
ToRecipient,
ToChange,
}
Expand description
Strategy to decide what to do with the excess amount.
Variants§
ToFee
Adds the excess amount to the transaction fee. This increases the fee rate and may lead to faster confirmation, but wastes the excess amount.
ToRecipient
Adds the excess amount to the recipient’s output. This avoids creating a change output and reduces transaction size, but may reveal information about the wallet’s available UTXOs.
ToChange
Creates a change output with the excess amount. This preserves privacy and allows reuse of the excess amount in future transactions, but increases transaction size and creates dust UTXOs if the amount is too small.
Trait Implementations§
Source§impl Clone for ExcessStrategy
impl Clone for ExcessStrategy
Source§fn clone(&self) -> ExcessStrategy
fn clone(&self) -> ExcessStrategy
Returns a duplicate 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 Debug for ExcessStrategy
impl Debug for ExcessStrategy
Source§impl PartialEq for ExcessStrategy
impl PartialEq for ExcessStrategy
impl Eq for ExcessStrategy
impl StructuralPartialEq for ExcessStrategy
Auto Trait Implementations§
impl Freeze for ExcessStrategy
impl RefUnwindSafe for ExcessStrategy
impl Send for ExcessStrategy
impl Sync for ExcessStrategy
impl Unpin for ExcessStrategy
impl UnwindSafe for ExcessStrategy
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