pub struct BalanceResult<TCycles = u128> {
pub amount: TCycles,
}Expand description
The result of a balance request.
Fields§
§amount: TCyclesThe balance of the wallet, in cycles.
Trait Implementations§
Source§impl<TCycles: CandidType> CandidType for BalanceResult<TCycles>
impl<TCycles: CandidType> CandidType for BalanceResult<TCycles>
Source§impl<TCycles: Clone> Clone for BalanceResult<TCycles>
impl<TCycles: Clone> Clone for BalanceResult<TCycles>
Source§fn clone(&self) -> BalanceResult<TCycles>
fn clone(&self) -> BalanceResult<TCycles>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<TCycles: Debug> Debug for BalanceResult<TCycles>
impl<TCycles: Debug> Debug for BalanceResult<TCycles>
Source§impl<'de, TCycles> Deserialize<'de> for BalanceResult<TCycles>where
TCycles: Deserialize<'de>,
impl<'de, TCycles> Deserialize<'de> for BalanceResult<TCycles>where
TCycles: Deserialize<'de>,
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
impl<TCycles: Copy> Copy for BalanceResult<TCycles>
Auto Trait Implementations§
impl<TCycles> Freeze for BalanceResult<TCycles>where
TCycles: Freeze,
impl<TCycles> RefUnwindSafe for BalanceResult<TCycles>where
TCycles: RefUnwindSafe,
impl<TCycles> Send for BalanceResult<TCycles>where
TCycles: Send,
impl<TCycles> Sync for BalanceResult<TCycles>where
TCycles: Sync,
impl<TCycles> Unpin for BalanceResult<TCycles>where
TCycles: Unpin,
impl<TCycles> UnwindSafe for BalanceResult<TCycles>where
TCycles: UnwindSafe,
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