[][src]Enum nimiq_account::Account

pub enum Account {
    Basic(BasicAccount),
    Vesting(VestingContract),
    HTLC(HashedTimeLockedContract),
}

Variants

Methods

impl Account[src]

pub const INITIAL: Account[src]

pub fn new_basic(balance: Coin) -> Account[src]

pub fn account_type(&self) -> AccountType[src]

pub fn balance(&self) -> Coin[src]

pub fn is_initial(&self) -> bool[src]

pub fn is_to_be_pruned(&self) -> bool[src]

pub fn balance_add(balance: Coin, value: Coin) -> Result<Coin, AccountError>[src]

pub fn balance_sub(balance: Coin, value: Coin) -> Result<Coin, AccountError>[src]

Trait Implementations

impl AccountTransactionInteraction for Account[src]

impl Clone for Account[src]

impl Eq for Account[src]

impl Ord for Account[src]

impl PartialEq<Account> for Account[src]

impl PartialOrd<Account> for Account[src]

impl Debug for Account[src]

impl StructuralPartialEq for Account[src]

impl StructuralEq for Account[src]

impl Serialize for Account[src]

impl Deserialize for Account[src]

Auto Trait Implementations

impl Send for Account

impl Sync for Account

impl Unpin for Account

impl UnwindSafe for Account

impl RefUnwindSafe for Account

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T