pub enum SplitTarget {
None,
Value(Amount),
Values(Vec<Amount>),
}Expand description
Kinds of targeting that are supported
Variants§
None
Default target; least amount of proofs
Value(Amount)
Target amount for wallet to have most proofs that add up to value
Values(Vec<Amount>)
Specific amounts to split into MUST equal amount being split
Trait Implementations§
Source§impl Clone for SplitTarget
impl Clone for SplitTarget
Source§fn clone(&self) -> SplitTarget
fn clone(&self) -> SplitTarget
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 Debug for SplitTarget
impl Debug for SplitTarget
Source§impl Default for SplitTarget
impl Default for SplitTarget
Source§fn default() -> SplitTarget
fn default() -> SplitTarget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SplitTarget
impl<'de> Deserialize<'de> for SplitTarget
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SplitTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SplitTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SplitTarget
impl Hash for SplitTarget
Source§impl Ord for SplitTarget
impl Ord for SplitTarget
Source§fn cmp(&self, other: &SplitTarget) -> Ordering
fn cmp(&self, other: &SplitTarget) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SplitTarget
impl PartialEq for SplitTarget
Source§impl PartialOrd for SplitTarget
impl PartialOrd for SplitTarget
Source§impl Serialize for SplitTarget
impl Serialize for SplitTarget
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SplitTarget
impl StructuralPartialEq for SplitTarget
Auto Trait Implementations§
impl Freeze for SplitTarget
impl RefUnwindSafe for SplitTarget
impl Send for SplitTarget
impl Sync for SplitTarget
impl Unpin for SplitTarget
impl UnwindSafe for SplitTarget
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