Enum bdk::descriptor::policy::Satisfaction [−][src]
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
Only a partial satisfaction of some kind of threshold policy
Show fields
Fields of Partial
n: usize
Total number of items
m: usize
Threshold
items: Vec<usize>
The items that can be satisfied by the descriptor or are satisfied in the PSBT
sorted: Option<bool>
Whether the items are sorted in lexicographic order (used by sortedmulti
)
conditions: ConditionMap
Extra conditions that also need to be satisfied
Can reach the threshold of some kind of threshold policy
Show fields
Fields of PartialComplete
Can satisfy the policy item
Show fields
Fields of Complete
condition: Condition
Extra conditions that also need to be satisfied
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V