pub struct Descriptors {
pub external: Descriptor<DescriptorPublicKey>,
pub internal: Descriptor<DescriptorPublicKey>,
}Fields§
§external: Descriptor<DescriptorPublicKey>§internal: Descriptor<DescriptorPublicKey>Implementations§
Source§impl Descriptors
impl Descriptors
pub fn try_from_line(line: &str) -> Result<Self, Error>
pub fn try_from_single_sig( single_sig: SingleSig, fingerprint: Option<&str>, ) -> Result<Self, Error>
pub fn try_from_child_xpub( xpub: Xpub, script_type: ScriptType, ) -> Result<Self, Error>
pub fn try_from_key_expression( key_expression: &KeyExpression, ) -> Result<Self, Error>
pub fn fingerprint(&self) -> Option<Fingerprint>
pub fn xpub(&self) -> Result<Xpub, Error>
Trait Implementations§
Source§impl Clone for Descriptors
impl Clone for Descriptors
Source§fn clone(&self) -> Descriptors
fn clone(&self) -> Descriptors
Returns a duplicate 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 moreSource§impl Debug for Descriptors
impl Debug for Descriptors
Source§impl<'de> Deserialize<'de> for Descriptors
impl<'de> Deserialize<'de> for Descriptors
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
Source§impl Hash for Descriptors
impl Hash for Descriptors
Source§impl Ord for Descriptors
impl Ord for Descriptors
Source§fn cmp(&self, other: &Descriptors) -> Ordering
fn cmp(&self, other: &Descriptors) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Descriptors
impl PartialEq for Descriptors
Source§impl PartialOrd for Descriptors
impl PartialOrd for Descriptors
Source§impl Serialize for Descriptors
impl Serialize for Descriptors
Source§impl TryFrom<&str> for Descriptors
impl TryFrom<&str> for Descriptors
Source§impl TryFrom<ElectrumJson> for Descriptors
impl TryFrom<ElectrumJson> for Descriptors
Source§impl TryFrom<WasabiJson> for Descriptors
impl TryFrom<WasabiJson> for Descriptors
impl Eq for Descriptors
impl StructuralPartialEq for Descriptors
Auto Trait Implementations§
impl !Freeze for Descriptors
impl RefUnwindSafe for Descriptors
impl Send for Descriptors
impl Sync for Descriptors
impl Unpin for Descriptors
impl UnwindSafe for Descriptors
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