[][src]Struct nimiq_account::vesting_contract::VestingContract

pub struct VestingContract {
    pub balance: Coin,
    pub owner: Address,
    pub vesting_start: u32,
    pub vesting_step_blocks: u32,
    pub vesting_step_amount: Coin,
    pub vesting_total_amount: Coin,
}

Fields

balance: Coinowner: Addressvesting_start: u32vesting_step_blocks: u32vesting_step_amount: Coinvesting_total_amount: Coin

Methods

impl VestingContract[src]

pub fn new(
    balance: Coin,
    owner: Address,
    vesting_start: u32,
    vesting_step_blocks: u32,
    vesting_step_amount: Coin,
    vesting_total_amount: Coin
) -> Self
[src]

pub fn with_balance(&self, balance: Coin) -> Self[src]

pub fn min_cap(&self, block_height: u32) -> Coin[src]

Trait Implementations

impl AccountTransactionInteraction for VestingContract[src]

impl Clone for VestingContract[src]

impl Eq for VestingContract[src]

impl Ord for VestingContract[src]

impl PartialEq<VestingContract> for VestingContract[src]

impl PartialOrd<VestingContract> for VestingContract[src]

impl Debug for VestingContract[src]

impl StructuralPartialEq for VestingContract[src]

impl StructuralEq for VestingContract[src]

impl Serialize for VestingContract[src]

impl Deserialize for VestingContract[src]

Auto Trait Implementations

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