pub struct Bucket { /* private fields */ }Implementations§
Source§impl Bucket
impl Bucket
Sourcepub fn new(contract: TokenContractId, offset: u64) -> Self
pub fn new(contract: TokenContractId, offset: u64) -> Self
Create a new bucket.
pub fn with_transaction_list(list: TransactionList) -> Self
pub fn get_next_canisters( &self, arg: WithWitnessArg, ) -> GetNextCanistersResponse
pub fn get_transaction(&self, arg: WithIdArg) -> GetTransactionResponse
pub fn get_transactions( &self, arg: GetTransactionsArg, ) -> GetTransactionsResponseBorrowed<'_>
pub fn get_user_transactions( &self, arg: GetUserTransactionsArg, ) -> GetTransactionsResponseBorrowed<'_>
pub fn get_token_transactions( &self, arg: GetTokenTransactionsArg, ) -> GetTransactionsResponseBorrowed<'_>
pub fn get_bucket_for(&self, arg: WithIdArg) -> GetBucketResponse
pub fn size(&self) -> u64
pub fn contract_id(&self) -> &Principal
pub fn insert(&mut self, event: Event) -> u64
pub fn set_next_canisters(&mut self, canisters: Vec<Principal>)
Trait Implementations§
Source§impl AsHashTree for Bucket
impl AsHashTree for Bucket
Source§impl CandidType for Bucket
impl CandidType for Bucket
Source§impl<'de> Deserialize<'de> for Bucket
impl<'de> Deserialize<'de> for Bucket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl !Send for Bucket
impl !Sync for Bucket
impl Unpin for Bucket
impl UnwindSafe for Bucket
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