pub enum OutputPolicy {
One(Address),
Forget,
}
Expand description
Output policy to be used in transaction. This policy is used then there is positive balance on in the OUTPUT+FEE-INPUT. Policy explains how to use that balance. Rember that policy application may change the amount of the fee.
Variants§
One(Address)
Send all extra balance to the given address.
Forget
Forget everything, do not try to return money.
Trait Implementations§
source§impl Clone for OutputPolicy
impl Clone for OutputPolicy
source§fn clone(&self) -> OutputPolicy
fn clone(&self) -> OutputPolicy
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 RefUnwindSafe for OutputPolicy
impl Send for OutputPolicy
impl Sync for OutputPolicy
impl Unpin for OutputPolicy
impl UnwindSafe for OutputPolicy
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