[][src]Enum stellar_base::transaction::TransactionEnvelope

pub enum TransactionEnvelope {
    Transaction(Transaction),
    FeeBumpTransaction(FeeBumpTransaction),
}

Transaction envelope.

Variants

Transaction(Transaction)

Transaction

FeeBumpTransaction(FeeBumpTransaction)

Fee bump transaction.

Implementations

impl TransactionEnvelope[src]

pub fn as_transaction(&self) -> Option<&Transaction>[src]

If the transaction is a Transaction, returns its value. Returns None otherwise.

pub fn as_transaction_mut(&mut self) -> Option<&mut Transaction>[src]

If the transaction is a Transaction, returns its mutable value. Returns None otherwise.

pub fn is_transaction(&self) -> bool[src]

Returns true if the transaction is a Transaction.

pub fn as_fee_bump_transaction(&self) -> Option<&FeeBumpTransaction>[src]

If the transaction is a FeeBumpTransaction, returns its value. Returns None otherwise.

pub fn as_fee_bump_transaction_mut(&mut self) -> Option<&mut FeeBumpTransaction>[src]

If the transaction is a FeeBumpTransaction, returns its mutable value. Returns None otherwise.

pub fn is_fee_bump_transaction(&self) -> bool[src]

Returns true if the transaction is a FeeBumpTransaction.

pub fn sign_hashx(&mut self, preimage: &[u8]) -> Result<()>[src]

Sign transaction with preimage, and add signature.

This signs the transaction with the preimage x of hash(x).

pub fn sign(&mut self, key: &KeyPair, network: &Network) -> Result<()>[src]

Sign transaction with key for network, and add signature.

pub fn decorated_signature_from_preimage(
    &self,
    preimage: &[u8]
) -> Result<DecoratedSignature>
[src]

Returns the decorated signature of the transaction create with image.

pub fn decorated_signature(
    &self,
    key: &KeyPair,
    network: &Network
) -> Result<DecoratedSignature>
[src]

Returns the decorated signature of the transaction create with key for network.

pub fn hash(&self, network: &Network) -> Result<Vec<u8>>[src]

Returns the transaction hash for the transaction on network.

pub fn signature_data(&self, network: &Network) -> Result<Vec<u8>>[src]

Returns the transaction signature data as bytes.

pub fn to_xdr(&self) -> Result<TransactionEnvelope>[src]

Returns the xdr object.

pub fn from_xdr(x: &TransactionEnvelope) -> Result<TransactionEnvelope>[src]

Creates from xdr object.

pub fn to_xdr_transaction_signature_payload(
    &self,
    network: &Network
) -> Result<TransactionSignaturePayload>
[src]

Returns the xdr transaction signature payload object.

Trait Implementations

impl Clone for TransactionEnvelope[src]

impl Debug for TransactionEnvelope[src]

impl Eq for TransactionEnvelope[src]

impl PartialEq<TransactionEnvelope> for TransactionEnvelope[src]

impl StructuralEq for TransactionEnvelope[src]

impl StructuralPartialEq for TransactionEnvelope[src]

impl XDRDeserialize for TransactionEnvelope[src]

impl XDRSerialize for TransactionEnvelope[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> 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.