[][src]Enum casper_types::TransferredTo

#[repr(i32)]pub enum TransferredTo {
    ExistingAccount,
    NewAccount,
}

The result of a successful transfer between purses.

Variants

ExistingAccount

The destination account already existed.

NewAccount

The destination account was created.

Implementations

impl TransferredTo[src]

pub fn result_from(value: i32) -> TransferResult[src]

Converts an i32 to a TransferResult, where:

  • 0 represents Ok(TransferredTo::ExistingAccount),
  • 1 represents Ok(TransferredTo::NewAccount),
  • all other inputs are mapped to Err(ApiError::Transfer).

Trait Implementations

impl Clone for TransferredTo[src]

impl Copy for TransferredTo[src]

impl Debug for TransferredTo[src]

impl Eq for TransferredTo[src]

impl PartialEq<TransferredTo> for TransferredTo[src]

impl StructuralEq for TransferredTo[src]

impl StructuralPartialEq for TransferredTo[src]

Auto Trait Implementations

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.