pub struct RecoveryConfig {
pub primary: SpendingTier,
pub recovery_tiers: Vec<RecoveryTier>,
pub network: Network,
}Fields§
§primary: SpendingTier§recovery_tiers: Vec<RecoveryTier>§network: NetworkImplementations§
Source§impl RecoveryConfig
impl RecoveryConfig
pub fn from_policy_input(input: &PolicyInput, network: Network) -> Result<Self>
pub fn validate(&self) -> Result<()>
pub fn build(&self) -> Result<RecoveryOutput>
pub fn build_with_internal_key( &self, internal_key: &XOnlyPublicKey, ) -> Result<RecoveryOutput>
Trait Implementations§
Source§impl Clone for RecoveryConfig
impl Clone for RecoveryConfig
Source§impl Debug for RecoveryConfig
impl Debug for RecoveryConfig
Source§impl<'de> Deserialize<'de> for RecoveryConfig
impl<'de> Deserialize<'de> for RecoveryConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for RecoveryConfig
impl Freeze for RecoveryConfig
impl Move for RecoveryConfig
impl RefUnwindSafe for RecoveryConfig
impl Send for RecoveryConfig
impl Sync for RecoveryConfig
impl Unpin for RecoveryConfig
impl UnsafeUnpin for RecoveryConfig
impl UnwindSafe for RecoveryConfig
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