pub enum LabelTarget {
Txid(Txid),
Address(Address<NetworkUnchecked>),
PublicKey(String),
Input(OutPoint),
Output(OutPoint),
Xpub(String),
}Expand description
Represents the various Bitcoin primitives that can be tagged with a BIP-329 label.
Variants§
Txid(Txid)
Address(Address<NetworkUnchecked>)
PublicKey(String)
Input(OutPoint)
Output(OutPoint)
Xpub(String)
Trait Implementations§
Source§impl From<Address<NetworkUnchecked>> for LabelTarget
impl From<Address<NetworkUnchecked>> for LabelTarget
Source§fn from(addr: Address<NetworkUnchecked>) -> Self
fn from(addr: Address<NetworkUnchecked>) -> Self
Converts to this type from the input type.
Source§impl From<InputTarget> for LabelTarget
impl From<InputTarget> for LabelTarget
Source§fn from(input: InputTarget) -> Self
fn from(input: InputTarget) -> Self
Converts to this type from the input type.
Source§impl From<OutputTarget> for LabelTarget
impl From<OutputTarget> for LabelTarget
Source§fn from(output: OutputTarget) -> Self
fn from(output: OutputTarget) -> Self
Converts to this type from the input type.
Source§impl From<PublicKey> for LabelTarget
impl From<PublicKey> for LabelTarget
Source§impl From<Txid> for LabelTarget
impl From<Txid> for LabelTarget
Auto Trait Implementations§
impl Freeze for LabelTarget
impl RefUnwindSafe for LabelTarget
impl Send for LabelTarget
impl Sync for LabelTarget
impl Unpin for LabelTarget
impl UnsafeUnpin for LabelTarget
impl UnwindSafe for LabelTarget
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