pub struct IcrcAccountTransactionSnapshot {Show 16 fields
pub schema_version: u32,
pub source_endpoint: String,
pub collection_started_at: String,
pub collection_completed_at: String,
pub fetched_by: String,
pub ledger_canister_id: String,
pub index_canister_id: String,
pub account_owner: String,
pub subaccount_hex: Option<String>,
pub balance: String,
pub token_symbol: String,
pub decimals: u8,
pub newest_transaction_id: Option<String>,
pub oldest_transaction_id: Option<String>,
pub completeness: IcrcAccountTransactionCompleteness,
pub transactions: Vec<IcrcAccountTransactionRow>,
}Expand description
IcrcAccountTransactionSnapshot
Complete persisted account-history snapshot collected by exhausting the index API.
Fields§
§schema_version: u32Cache schema version.
source_endpoint: StringIC API endpoint used for ledger and index calls.
collection_started_at: StringCollection start timestamp.
collection_completed_at: StringCollection completion timestamp.
fetched_by: StringCollector identity.
ledger_canister_id: StringLedger canister whose transactions were indexed.
index_canister_id: StringVerified index canister used for every page.
account_owner: StringQueried account owner principal.
subaccount_hex: Option<String>Queried subaccount as normalized hex.
balance: StringAccount balance reported by the first index page.
token_symbol: StringLedger token symbol used for text rendering.
decimals: u8Ledger token decimals used for text rendering.
newest_transaction_id: Option<String>Highest collected transaction id.
oldest_transaction_id: Option<String>Lowest collected transaction id.
completeness: IcrcAccountTransactionCompletenessComplete-collection evidence.
transactions: Vec<IcrcAccountTransactionRow>Canonical newest-first account transactions.
Trait Implementations§
Source§impl Clone for IcrcAccountTransactionSnapshot
impl Clone for IcrcAccountTransactionSnapshot
Source§fn clone(&self) -> IcrcAccountTransactionSnapshot
fn clone(&self) -> IcrcAccountTransactionSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for IcrcAccountTransactionSnapshot
impl<'de> Deserialize<'de> for IcrcAccountTransactionSnapshot
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IcrcAccountTransactionSnapshot
impl StructuralPartialEq for IcrcAccountTransactionSnapshot
Auto Trait Implementations§
impl Freeze for IcrcAccountTransactionSnapshot
impl RefUnwindSafe for IcrcAccountTransactionSnapshot
impl Send for IcrcAccountTransactionSnapshot
impl Sync for IcrcAccountTransactionSnapshot
impl Unpin for IcrcAccountTransactionSnapshot
impl UnsafeUnpin for IcrcAccountTransactionSnapshot
impl UnwindSafe for IcrcAccountTransactionSnapshot
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