pub struct IcrcAccountTransactionRefreshRequest {
pub cache: IcrcAccountTransactionCacheRequest,
pub now_unix_secs: u64,
pub index_canister_id: Option<String>,
pub page_size: u32,
pub max_pages: Option<u32>,
pub lock_stale_after_seconds: u64,
}Expand description
IcrcAccountTransactionRefreshRequest
Request for a forced complete account-history refresh.
Fields§
§cache: IcrcAccountTransactionCacheRequestStable cache identity.
now_unix_secs: u64Collection start time as Unix seconds.
index_canister_id: Option<String>Optional explicit index canister; otherwise ICRC-106 discovery is used.
page_size: u32Maximum transactions requested per index page.
max_pages: Option<u32>Optional diagnostic bound that fails rather than publishing a partial cache.
lock_stale_after_seconds: u64Age after which an abandoned refresh lock is reported as stale.
Implementations§
Source§impl IcrcAccountTransactionRefreshRequest
impl IcrcAccountTransactionRefreshRequest
Sourcepub const fn new(
cache: IcrcAccountTransactionCacheRequest,
now_unix_secs: u64,
page_size: u32,
lock_stale_after_seconds: u64,
) -> Self
pub const fn new( cache: IcrcAccountTransactionCacheRequest, now_unix_secs: u64, page_size: u32, lock_stale_after_seconds: u64, ) -> Self
Constructs a complete refresh request.
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 const fn with_max_pages(self, max_pages: Option<u32>) -> Self
pub const fn with_max_pages(self, max_pages: Option<u32>) -> Self
Bounds pages for diagnostics; reaching the bound never publishes a cache.
Trait Implementations§
Source§impl Clone for IcrcAccountTransactionRefreshRequest
impl Clone for IcrcAccountTransactionRefreshRequest
Source§fn clone(&self) -> IcrcAccountTransactionRefreshRequest
fn clone(&self) -> IcrcAccountTransactionRefreshRequest
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 moreimpl Eq for IcrcAccountTransactionRefreshRequest
impl StructuralPartialEq for IcrcAccountTransactionRefreshRequest
Auto Trait Implementations§
impl Freeze for IcrcAccountTransactionRefreshRequest
impl RefUnwindSafe for IcrcAccountTransactionRefreshRequest
impl Send for IcrcAccountTransactionRefreshRequest
impl Sync for IcrcAccountTransactionRefreshRequest
impl Unpin for IcrcAccountTransactionRefreshRequest
impl UnsafeUnpin for IcrcAccountTransactionRefreshRequest
impl UnwindSafe for IcrcAccountTransactionRefreshRequest
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