Enum bdk_wallet::descriptor::policy::Satisfaction
source · pub enum Satisfaction {
Partial {
n: usize,
m: usize,
items: Vec<usize>,
sorted: Option<bool>,
conditions: ConditionMap,
},
PartialComplete {
n: usize,
m: usize,
items: Vec<usize>,
sorted: Option<bool>,
conditions: FoldedConditionMap,
},
Complete {
condition: Condition,
},
None,
}
Expand description
Represent if and how much a policy item is satisfied by the wallet’s descriptor
Variants§
Partial
Only a partial satisfaction of some kind of threshold policy
Fields
§
conditions: ConditionMap
Extra conditions that also need to be satisfied
PartialComplete
Can reach the threshold of some kind of threshold policy
Fields
§
conditions: FoldedConditionMap
Extra conditions that also need to be satisfied
Complete
Can satisfy the policy item
None
Cannot satisfy or contribute to the policy item
Implementations§
source§impl Satisfaction
impl Satisfaction
sourcepub fn is_leaf(&self) -> bool
pub fn is_leaf(&self) -> bool
Returns whether the Satisfaction
is a leaf item
Trait Implementations§
source§impl Clone for Satisfaction
impl Clone for Satisfaction
source§fn clone(&self) -> Satisfaction
fn clone(&self) -> Satisfaction
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 Satisfaction
impl Debug for Satisfaction
source§impl From<bool> for Satisfaction
impl From<bool> for Satisfaction
source§impl PartialEq for Satisfaction
impl PartialEq for Satisfaction
source§fn eq(&self, other: &Satisfaction) -> bool
fn eq(&self, other: &Satisfaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Satisfaction
impl Serialize for Satisfaction
impl Eq for Satisfaction
impl StructuralPartialEq for Satisfaction
Auto Trait Implementations§
impl Freeze for Satisfaction
impl RefUnwindSafe for Satisfaction
impl Send for Satisfaction
impl Sync for Satisfaction
impl Unpin for Satisfaction
impl UnwindSafe for Satisfaction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more