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
n: usize
Total number of items
m: usize
Threshold
conditions: ConditionMap
Extra conditions that also need to be satisfied
Only a partial satisfaction of some kind of threshold policy
PartialComplete
Fields
n: usize
Total number of items
m: usize
Threshold
conditions: FoldedConditionMap
Extra conditions that also need to be satisfied
Can reach the threshold of some kind of threshold policy
Complete
Fields
condition: Condition
Extra conditions that also need to be satisfied
Can satisfy the policy item
None
Cannot satisfy or contribute to the policy item
Implementations
Returns whether the Satisfaction
is a leaf item
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Satisfaction
impl Send for Satisfaction
impl Sync for Satisfaction
impl Unpin for Satisfaction
impl UnwindSafe for Satisfaction
Blanket Implementations
Mutably borrows from an owned value. Read more