[−][src]Struct stellar_base::transaction::Transaction
Stellar transaction.
Implementations
impl Transaction[src]
pub fn builder<S: Into<MuxedAccount>>(
source_account: S,
sequence: i64,
fee: Stroops
) -> TransactionBuilder[src]
source_account: S,
sequence: i64,
fee: Stroops
) -> TransactionBuilder
Creates a TransactionBuilder to configure a Transaction.
This is the same as TransactionBuilder::new.
pub fn source_account(&self) -> &MuxedAccount[src]
Retrieves the transaction source account.
pub fn source_account_mut(&mut self) -> &mut MuxedAccount[src]
Retrieves a mutable reference to the transaction source account.
pub fn fee(&self) -> &Stroops[src]
Retrieves the transaction fee.
pub fn fee_mut(&mut self) -> &mut Stroops[src]
Retrieves a mutable reference to the transaction fee.
pub fn sequence(&self) -> &i64[src]
Retrieves the transaction sequence number.
pub fn sequence_mut(&mut self) -> &mut i64[src]
Retrieves a mutable reference to the transaction sequence number.
pub fn time_bounds(&self) -> &Option<TimeBounds>[src]
Retrieves the transaction time bounds.
pub fn time_bounds_mut(&mut self) -> &mut Option<TimeBounds>[src]
Retrieves a mutable reference to the transaction time bounds.
pub fn memo(&self) -> &Memo[src]
Retrieves the transaction memo.
pub fn memo_mut(&mut self) -> &mut Memo[src]
Retrieves a mutable reference to the transaction memo.
pub fn operations(&self) -> &Vec<Operation>[src]
Retrieves the transaction operations.
pub fn operations_mut(&mut self) -> &mut Vec<Operation>[src]
Retrieves a mutable reference to the transaction operations.
pub fn signatures(&self) -> &Vec<DecoratedSignature>[src]
Retrieves the transaction signatures.
pub fn signatures_mut(&mut self) -> &mut Vec<DecoratedSignature>[src]
Retrieves a mutable reference to the transaction signatures.
pub fn to_envelope(&self) -> TransactionEnvelope[src]
Creates a TransactionEnvelope from the transaction.
pub fn into_envelope(self) -> TransactionEnvelope[src]
Creates a TransactionEnvelope from the transaction.
This consumes the transaction and takes ownership of it.
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<Transaction>[src]
Returns the xdr object.
pub fn to_xdr_envelope(&self) -> Result<TransactionV1Envelope>[src]
Returns the transaction envelope v1 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.
pub fn from_xdr(x: &Transaction) -> Result<Transaction>[src]
Creates from xdr object.
pub fn from_xdr_envelope(x: &TransactionV1Envelope) -> Result<Transaction>[src]
Creates from xdr envelope object.
Trait Implementations
impl Clone for Transaction[src]
fn clone(&self) -> Transaction[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Transaction[src]
impl Eq for Transaction[src]
impl PartialEq<Transaction> for Transaction[src]
fn eq(&self, other: &Transaction) -> bool[src]
fn ne(&self, other: &Transaction) -> bool[src]
impl StructuralEq for Transaction[src]
impl StructuralPartialEq for Transaction[src]
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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>,