[][src]Enum monero::blockdata::transaction::TxOutTarget

pub enum TxOutTarget {
    ToScript {
        keys: Vec<PublicKey>,
        script: Vec<u8>,
    },
    ToKey {
        key: PublicKey,
    },
    ToScriptHash {
        hash: Hash,
    },
}

Output format, only output to key is used

Variants

ToScript

Output to script

Fields of ToScript

keys: Vec<PublicKey>

Keys

script: Vec<u8>

Script

ToKey

Output to one-time public key

Fields of ToKey

key: PublicKey

The one-time public key

ToScriptHash

Output to script hash

Fields of ToScriptHash

hash: Hash

Script hash

Implementations

impl TxOutTarget[src]

pub fn get_pubkeys(&self) -> Option<Vec<PublicKey>>[src]

Retreive the public keys, if any

Trait Implementations

impl Clone for TxOutTarget[src]

impl Debug for TxOutTarget[src]

impl<D: Decoder> Decodable<D> for TxOutTarget[src]

impl<S: Encoder> Encodable<S> for TxOutTarget[src]

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.