Struct wallet::PubkeyScript[][src]

pub struct PubkeyScript(_);

A content of scriptPubkey from a transaction output

Implementations

impl PubkeyScript[src]

pub fn address(&self, network: Network) -> Option<Address>[src]

pub fn script_code(&self) -> ScriptCode[src]

Trait Implementations

impl AsMut<<PubkeyScript as Wrapper>::Inner> for PubkeyScript[src]

impl AsRef<<PubkeyScript as Wrapper>::Inner> for PubkeyScript[src]

impl Borrow<<PubkeyScript as Wrapper>::Inner> for PubkeyScript[src]

impl BorrowMut<<PubkeyScript as Wrapper>::Inner> for PubkeyScript[src]

impl Clone for PubkeyScript[src]

impl Debug for PubkeyScript[src]

impl Default for PubkeyScript[src]

impl Deref for PubkeyScript[src]

type Target = Self::Inner

The resulting type after dereferencing.

impl DerefMut for PubkeyScript[src]

impl Display for PubkeyScript[src]

impl Eq for PubkeyScript[src]

impl From<AddressCompat> for PubkeyScript[src]

impl From<AddressPayload> for PubkeyScript[src]

impl From<Compact> for PubkeyScript[src]

impl From<Expanded> for PubkeyScript[src]

impl From<Script> for PubkeyScript[src]

impl From<WPubkeyHash> for PubkeyScript[src]

impl Hash for PubkeyScript[src]

impl LowerHex for PubkeyScript[src]

impl Ord for PubkeyScript[src]

impl PartialEq<PubkeyScript> for PubkeyScript[src]

impl PartialOrd<PubkeyScript> for PubkeyScript[src]

impl Strategy for PubkeyScript[src]

impl StructuralEq for PubkeyScript[src]

impl StructuralPartialEq for PubkeyScript[src]

impl TryFrom<PubkeyScript> for Compact[src]

type Error = Error

The type returned in the event of a conversion error.

impl UpperHex for PubkeyScript[src]

impl Wrapper for PubkeyScript[src]

type Inner = Script

Inner type wrapped by the current newtype

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToHex for T where
    T: LowerHex

pub fn to_hex(&self) -> String

Outputs the hash in hexadecimal form

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.