pub struct Index(/* private fields */);
Expand description
A Cap index canister.
Implementations§
Source§impl Index
impl Index
Sourcepub async fn get_token_contract_root_bucket(
&self,
contract: Principal,
) -> Result<RootBucket, GetContractRootError>
pub async fn get_token_contract_root_bucket( &self, contract: Principal, ) -> Result<RootBucket, GetContractRootError>
Returns the root bucket canister associated with the given token contract.
Sourcepub async fn get_user_root_buckets(
&self,
user: Principal,
) -> Result<Vec<RootBucket>, (RejectionCode, String)>
pub async fn get_user_root_buckets( &self, user: Principal, ) -> Result<Vec<RootBucket>, (RejectionCode, String)>
Returns all roots for contracts a user has transactions on.
Sourcepub async fn get_router_canisters(
&self,
) -> Result<Vec<Router>, (RejectionCode, String)>
pub async fn get_router_canisters( &self, ) -> Result<Vec<Router>, (RejectionCode, String)>
Returns the list of router canisters that can be used for querying the indexes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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