[−][src]Enum stellar_base::transaction::TransactionEnvelope
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]
&self,
preimage: &[u8]
) -> Result<DecoratedSignature>
Returns the decorated signature of the transaction create with image
.
pub fn decorated_signature(
&self,
key: &KeyPair,
network: &Network
) -> Result<DecoratedSignature>
[src]
&self,
key: &KeyPair,
network: &Network
) -> Result<DecoratedSignature>
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]
&self,
network: &Network
) -> Result<TransactionSignaturePayload>
Returns the xdr transaction signature payload object.
Trait Implementations
impl Clone for TransactionEnvelope
[src]
fn clone(&self) -> TransactionEnvelope
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TransactionEnvelope
[src]
impl Eq for TransactionEnvelope
[src]
impl PartialEq<TransactionEnvelope> for TransactionEnvelope
[src]
fn eq(&self, other: &TransactionEnvelope) -> bool
[src]
fn ne(&self, other: &TransactionEnvelope) -> bool
[src]
impl StructuralEq for TransactionEnvelope
[src]
impl StructuralPartialEq for TransactionEnvelope
[src]
impl XDRDeserialize for TransactionEnvelope
[src]
fn from_xdr_bytes(buffer: &[u8]) -> Result<(Self, u64)>
[src]
fn from_xdr_base64(encoded: &str) -> Result<Self>
[src]
impl XDRSerialize for TransactionEnvelope
[src]
Auto Trait Implementations
impl RefUnwindSafe for TransactionEnvelope
impl Send for TransactionEnvelope
impl Sync for TransactionEnvelope
impl Unpin for TransactionEnvelope
impl UnwindSafe for TransactionEnvelope
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,