Enum bdk::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
Fields
§
conditions: ConditionMap
Extra conditions that also need to be satisfied
Only a partial satisfaction of some kind of threshold policy
PartialComplete
Fields
§
conditions: FoldedConditionMap
Extra conditions that also need to be satisfied
Can reach the threshold of some kind of threshold policy
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 more