pub struct Transaction {Show 13 fields
pub account: HashBytes,
pub lt: u64,
pub prev_trans_hash: HashBytes,
pub prev_trans_lt: u64,
pub now: u32,
pub out_msg_count: Uint15,
pub orig_status: AccountStatus,
pub end_status: AccountStatus,
pub in_msg: Option<Cell>,
pub out_msgs: Dict<Uint15, Cell>,
pub total_fees: CurrencyCollection,
pub state_update: Lazy<HashUpdate>,
pub info: Lazy<TxInfo>,
}Expand description
Blockchain transaction.
Fields§
§account: HashBytesAccount on which this transaction was produced.
lt: u64Logical time when the transaction was created.
prev_trans_hash: HashBytesThe hash of the previous transaction on the same account.
prev_trans_lt: u64The logical time of the previous transaction on the same account.
now: u32Unix timestamp when the transaction was created.
out_msg_count: Uint15The number of outgoing messages.
orig_status: AccountStatusAccount status before this transaction.
end_status: AccountStatusAccount status after this transaction.
in_msg: Option<Cell>Optional incoming message.
out_msgs: Dict<Uint15, Cell>Outgoing messages.
total_fees: CurrencyCollectionTotal transaction fees (including extra fwd fees).
state_update: Lazy<HashUpdate>Account state hashes.
info: Lazy<TxInfo>Detailed transaction info.
Implementations§
Source§impl Transaction
impl Transaction
Source§impl Transaction
impl Transaction
Sourcepub fn iter_out_msgs(&self) -> TxOutMsgIter<'_> ⓘ
pub fn iter_out_msgs(&self) -> TxOutMsgIter<'_> ⓘ
Gets an iterator over the output messages of this transaction, in order by lt.
The iterator element type is Result<Message<'a>>.
If the dictionary or message is invalid, finishes after the first invalid element, returning an error.
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Transaction
impl Debug for Transaction
Source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<'a> Load<'a> for Transaction
impl<'a> Load<'a> for Transaction
Source§impl PartialEq for Transaction
impl PartialEq for Transaction
Source§impl Serialize for Transaction
impl Serialize for Transaction
Source§impl Store for Transaction
impl Store for Transaction
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
impl Eq for Transaction
impl StructuralPartialEq for Transaction
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
self to key and returns true if they are equal.