pub struct IcrcAccountTransactionPageRequest {
pub ledger: IcrcLedgerRequest,
pub index_canister_id: Option<String>,
pub account_owner: String,
pub subaccount_hex: Option<String>,
pub start: Option<String>,
pub limit: u32,
}Expand description
IcrcAccountTransactionPageRequest
Request accepted by the live ICRC index account-transaction page builder.
Fields§
§ledger: IcrcLedgerRequestShared ledger identity, explicit endpoint and caller collection clock.
index_canister_id: Option<String>Optional explicit index canister; otherwise ICRC-106 discovery is used.
account_owner: StringAccount owner principal.
subaccount_hex: Option<String>Optional normalized 32-byte subaccount hex.
start: Option<String>Optional exclusive block-index cursor for backward pagination.
limit: u32Maximum number of account transactions to request.
Implementations§
Source§impl IcrcAccountTransactionPageRequest
impl IcrcAccountTransactionPageRequest
Sourcepub fn new(
ledger: IcrcLedgerRequest,
account_owner: impl Into<String>,
limit: u32,
) -> Self
pub fn new( ledger: IcrcLedgerRequest, account_owner: impl Into<String>, limit: u32, ) -> Self
Constructs an account-history request that discovers the index through the ledger.
Sourcepub fn with_index_canister_id(
self,
index_canister_id: impl Into<String>,
) -> Self
pub fn with_index_canister_id( self, index_canister_id: impl Into<String>, ) -> Self
Uses an explicit index canister instead of ICRC-106 discovery.
Sourcepub fn with_subaccount_hex(self, subaccount_hex: impl Into<String>) -> Self
pub fn with_subaccount_hex(self, subaccount_hex: impl Into<String>) -> Self
Selects a 32-byte ICRC subaccount encoded as hex.
Sourcepub fn with_start(self, start: impl Into<String>) -> Self
pub fn with_start(self, start: impl Into<String>) -> Self
Starts after the given transaction block index when paginating backward.
Trait Implementations§
impl Eq for IcrcAccountTransactionPageRequest
impl StructuralPartialEq for IcrcAccountTransactionPageRequest
Auto Trait Implementations§
impl Freeze for IcrcAccountTransactionPageRequest
impl RefUnwindSafe for IcrcAccountTransactionPageRequest
impl Send for IcrcAccountTransactionPageRequest
impl Sync for IcrcAccountTransactionPageRequest
impl Unpin for IcrcAccountTransactionPageRequest
impl UnsafeUnpin for IcrcAccountTransactionPageRequest
impl UnwindSafe for IcrcAccountTransactionPageRequest
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