Struct cap_sdk_core::Index
source · [−]pub struct Index(_);Expand description
A Cap index canister.
Implementations
sourceimpl 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 RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more