pub enum Party {
Subsidy,
Counterparty(Address),
Unknown(ScriptPubkey),
Wallet(DerivedAddr),
}
Variants§
Implementations§
Source§impl Party
impl Party
pub fn is_ourself(&self) -> bool
pub fn is_external(&self) -> bool
pub fn is_unknown(&self) -> bool
pub fn derived_addr(&self) -> Option<DerivedAddr>
pub fn from_wallet_addr<T>(wallet_addr: &WalletAddr<T>) -> Party
pub fn script_pubkey(&self) -> Option<ScriptPubkey>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Party
impl<'de> Deserialize<'de> for Party
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Party, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Party, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DerivedAddr> for Party
impl From<DerivedAddr> for Party
Source§fn from(v: DerivedAddr) -> Party
fn from(v: DerivedAddr) -> Party
Converts to this type from the input type.
Source§impl From<Party> for Counterparty
impl From<Party> for Counterparty
Source§fn from(party: Party) -> Counterparty
fn from(party: Party) -> Counterparty
Converts to this type from the input type.
Source§impl From<ScriptPubkey> for Party
impl From<ScriptPubkey> for Party
Source§fn from(v: ScriptPubkey) -> Party
fn from(v: ScriptPubkey) -> Party
Converts to this type from the input type.
Source§impl Serialize for Party
impl Serialize for Party
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Party
impl StructuralPartialEq for Party
Auto Trait Implementations§
impl Freeze for Party
impl RefUnwindSafe for Party
impl Send for Party
impl Sync for Party
impl Unpin for Party
impl UnwindSafe for Party
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.