Struct abstract_core::objects::deposit_manager::UserDeposit
source · pub struct UserDeposit<'a> { /* private fields */ }
Implementations§
source§impl UserDeposit<'_>
impl UserDeposit<'_>
pub const fn new(namespace: &'static str) -> UserDeposit<'static>
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>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for UserDeposit<'a>
impl<'a> Send for UserDeposit<'a>
impl<'a> Sync for UserDeposit<'a>
impl<'a> Unpin for UserDeposit<'a>
impl<'a> UnwindSafe for UserDeposit<'a>
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