Struct abstract_core::objects::deposit_manager::DepositManager
source · pub struct DepositManager { /* private fields */ }
Implementations§
source§impl DepositManager
impl DepositManager
pub const fn new( total_namespace: &'static str, deposit_namespace: &'static str ) -> Self
pub fn increase( &self, storage: &mut dyn Storage, key: &[u8], amount: Uint64 ) -> AbstractResult<()>
pub fn decrease( &self, storage: &mut dyn Storage, key: &[u8], amount: Uint64 ) -> AbstractResult<()>
pub fn get(&self, storage: &dyn Storage, key: &[u8]) -> AbstractResult<Uint64>
pub fn get_total_deposits( &self, storage: &dyn Storage ) -> AbstractResult<Uint64>
Auto Trait Implementations§
impl RefUnwindSafe for DepositManager
impl Send for DepositManager
impl Sync for DepositManager
impl Unpin for DepositManager
impl UnwindSafe for DepositManager
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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