Struct bdk_wallet::descriptor::policy::Condition
source · pub struct Condition {
pub csv: Option<Sequence>,
pub timelock: Option<LockTime>,
}
Expand description
An extra condition that must be satisfied but that is out of control of the user
TODO: use bitcoin::LockTime
and bitcoin::Sequence
Fields§
§csv: Option<Sequence>
Optional CheckSequenceVerify condition
timelock: Option<LockTime>
Optional timelock condition
Implementations§
Trait Implementations§
source§impl PartialEq for Condition
impl PartialEq for Condition
source§impl PartialOrd for Condition
impl PartialOrd for Condition
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Condition
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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