pub struct IcrcAccountTransactionCacheRequest {
pub cache_root: PathBuf,
pub source_endpoint: String,
pub ledger_canister_id: String,
pub account_owner: String,
pub subaccount_hex: Option<String>,
}Expand description
IcrcAccountTransactionCacheRequest
Stable account-history cache identity independent of page and view options.
Fields§
§cache_root: PathBufRoot directory containing the shared cache.
source_endpoint: StringIC API endpoint whose indexed history is cached.
ledger_canister_id: StringLedger canister whose account history is cached.
account_owner: StringAccount owner principal.
subaccount_hex: Option<String>Optional normalized 32-byte subaccount hex.
Implementations§
Source§impl IcrcAccountTransactionCacheRequest
impl IcrcAccountTransactionCacheRequest
Sourcepub fn new(
cache_root: impl Into<PathBuf>,
source_endpoint: impl Into<String>,
ledger_canister_id: impl Into<String>,
account_owner: impl Into<String>,
) -> Self
pub fn new( cache_root: impl Into<PathBuf>, source_endpoint: impl Into<String>, ledger_canister_id: impl Into<String>, account_owner: impl Into<String>, ) -> Self
Constructs a cache identity for the default subaccount.
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.
Trait Implementations§
Source§impl Clone for IcrcAccountTransactionCacheRequest
impl Clone for IcrcAccountTransactionCacheRequest
Source§fn clone(&self) -> IcrcAccountTransactionCacheRequest
fn clone(&self) -> IcrcAccountTransactionCacheRequest
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 IcrcAccountTransactionCacheRequest
impl StructuralPartialEq for IcrcAccountTransactionCacheRequest
Auto Trait Implementations§
impl Freeze for IcrcAccountTransactionCacheRequest
impl RefUnwindSafe for IcrcAccountTransactionCacheRequest
impl Send for IcrcAccountTransactionCacheRequest
impl Sync for IcrcAccountTransactionCacheRequest
impl Unpin for IcrcAccountTransactionCacheRequest
impl UnsafeUnpin for IcrcAccountTransactionCacheRequest
impl UnwindSafe for IcrcAccountTransactionCacheRequest
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