[−][src]Struct nimiq_account::vesting_contract::VestingContract
Fields
balance: Coin
owner: Address
vesting_start: u32
vesting_step_blocks: u32
vesting_step_amount: Coin
vesting_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]
balance: Coin,
owner: Address,
vesting_start: u32,
vesting_step_blocks: u32,
vesting_step_amount: Coin,
vesting_total_amount: Coin
) -> Self
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]
fn new_contract(
account_type: AccountType,
balance: Coin,
transaction: &Transaction,
block_height: u32
) -> Result<Self, AccountError>
[src]
account_type: AccountType,
balance: Coin,
transaction: &Transaction,
block_height: u32
) -> Result<Self, AccountError>
fn create(
balance: Coin,
transaction: &Transaction,
_block_height: u32
) -> Result<Self, AccountError>
[src]
balance: Coin,
transaction: &Transaction,
_block_height: u32
) -> Result<Self, AccountError>
fn with_incoming_transaction(
&self,
_transaction: &Transaction,
_block_height: u32
) -> Result<Self, AccountError>
[src]
&self,
_transaction: &Transaction,
_block_height: u32
) -> Result<Self, AccountError>
fn without_incoming_transaction(
&self,
_transaction: &Transaction,
_block_height: u32
) -> Result<Self, AccountError>
[src]
&self,
_transaction: &Transaction,
_block_height: u32
) -> Result<Self, AccountError>
fn with_outgoing_transaction(
&self,
transaction: &Transaction,
block_height: u32
) -> Result<Self, AccountError>
[src]
&self,
transaction: &Transaction,
block_height: u32
) -> Result<Self, AccountError>
fn without_outgoing_transaction(
&self,
transaction: &Transaction,
_block_height: u32
) -> Result<Self, AccountError>
[src]
&self,
transaction: &Transaction,
_block_height: u32
) -> Result<Self, AccountError>
impl Clone for VestingContract
[src]
fn clone(&self) -> VestingContract
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for VestingContract
[src]
impl Ord for VestingContract
[src]
fn cmp(&self, other: &VestingContract) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<VestingContract> for VestingContract
[src]
fn eq(&self, other: &VestingContract) -> bool
[src]
fn ne(&self, other: &VestingContract) -> bool
[src]
impl PartialOrd<VestingContract> for VestingContract
[src]
fn partial_cmp(&self, other: &VestingContract) -> Option<Ordering>
[src]
fn lt(&self, other: &VestingContract) -> bool
[src]
fn le(&self, other: &VestingContract) -> bool
[src]
fn gt(&self, other: &VestingContract) -> bool
[src]
fn ge(&self, other: &VestingContract) -> bool
[src]
impl Debug for VestingContract
[src]
impl StructuralPartialEq for VestingContract
[src]
impl StructuralEq for VestingContract
[src]
impl Serialize for VestingContract
[src]
fn serialize<W: WriteBytesExt>(
&self,
writer: &mut W
) -> Result<usize, SerializingError>
[src]
&self,
writer: &mut W
) -> Result<usize, SerializingError>
fn serialized_size(&self) -> usize
[src]
fn serialize_to_vec(&self) -> Vec<u8>
[src]
impl Deserialize for VestingContract
[src]
fn deserialize<R: ReadBytesExt>(
reader: &mut R
) -> Result<Self, SerializingError>
[src]
reader: &mut R
) -> Result<Self, SerializingError>
fn deserialize_from_vec(v: &Vec<u8>) -> Result<Self, SerializingError>
[src]
Auto Trait Implementations
impl Send for VestingContract
impl Sync for VestingContract
impl Unpin for VestingContract
impl UnwindSafe for VestingContract
impl RefUnwindSafe for VestingContract
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self