[][src]Enum rchain_v1::rchain::AccountType

pub enum AccountType {
    User,
    Contract,
    Validator {
        correctly_validated_blocks: u128,
        incorrectly_validated_blocks: u128,
        you_get_the_idea: bool,
    },
}

We can support different types of accounts which could be used to represent different roles within the system This is just for later extension, for now we will only use User accounts

Variants

User

A common user account

Contract

An account that technically does not represent an individual Think of this like a SmartContract in Ethereum. We will not use it in our implementation. It's just here if you want to go on implementing to provide a starting point for more :)

Validator

Add whatever roles you need. Again, we will NOT make use of this for the example here

Fields of Validator

correctly_validated_blocks: u128incorrectly_validated_blocks: u128you_get_the_idea: bool

Trait Implementations

impl Clone for AccountType[src]

impl Debug for AccountType[src]

Auto Trait Implementations

impl RefUnwindSafe for AccountType

impl Send for AccountType

impl Sync for AccountType

impl Unpin for AccountType

impl UnwindSafe for AccountType

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.