[−][src]Enum nimiq_account::Account
Variants
Basic(BasicAccount)
Vesting(VestingContract)
HTLC(HashedTimeLockedContract)
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]
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 Account
[src]
impl Eq for Account
[src]
impl Ord for Account
[src]
fn cmp(&self, other: &Account) -> 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<Account> for Account
[src]
impl PartialOrd<Account> for Account
[src]
fn partial_cmp(&self, other: &Account) -> Option<Ordering>
[src]
fn lt(&self, other: &Account) -> bool
[src]
fn le(&self, other: &Account) -> bool
[src]
fn gt(&self, other: &Account) -> bool
[src]
fn ge(&self, other: &Account) -> bool
[src]
impl Debug for Account
[src]
impl StructuralPartialEq for Account
[src]
impl StructuralEq for Account
[src]
impl Serialize for Account
[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 Account
[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 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]
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