pub struct Transaction {
pub source: PublicKey,
pub sequence: u64,
pub fee: Stroops,
pub time_bounds: Option<TimeBounds>,
pub memo: Memo,
pub operations: Vec<Operation>,
}
Expand description
A transaction containing operations that change the ledger state.
Fields§
§source: PublicKey
The source account.
sequence: u64
The sequence number.
fee: Stroops
The fee.
time_bounds: Option<TimeBounds>
The validity time bounds.
memo: Memo
The attached memo.
operations: Vec<Operation>
The operations.
Implementations§
Source§impl Transaction
impl Transaction
Sourcepub fn new(
source: PublicKey,
sequence: u64,
time_bounds: Option<TimeBounds>,
memo: Memo,
operations: Vec<Operation>,
) -> Transaction
pub fn new( source: PublicKey, sequence: u64, time_bounds: Option<TimeBounds>, memo: Memo, operations: Vec<Operation>, ) -> Transaction
Create a new transaction.
Sourcepub fn time_bounds(&self) -> &Option<TimeBounds>
pub fn time_bounds(&self) -> &Option<TimeBounds>
The transaction time bounds for its validity.
Sourcepub fn operations(&self) -> &Vec<Operation>
pub fn operations(&self) -> &Vec<Operation>
The operations included in the transaction.
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more