Struct coinbase::accounts::Account[][src]

pub struct Account {
    pub id: String,
    pub resource: String,
    pub resource_path: String,
    pub name: String,
    pub primary: bool,
    pub type: AccountType,
    pub currency: AccountCurrency,
    pub balance: Money,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
}

Account resource represents all of a user’s accounts, including bitcoin, bitcoin cash, litecoin and ethereum wallets, fiat currency accounts, and vaults. This is represented in the type field. It’s important to note that new types can be added over time so you want to make sure this won’t break your implementation. User can only have one primary account and its type can only be wallet.

Fields

id: String

Resource ID

resource: String

constant "account"

resource_path: Stringname: String

User or system defined name

primary: bool

Primary account

type: AccountType

Account’s type. Available values: wallet, fiat, vault

currency: AccountCurrency

Account’s currency

balance: Money

Balance in BTC or ETH

created_at: DateTime<Utc>updated_at: DateTime<Utc>

Trait Implementations

impl Clone for Account[src]

impl Debug for Account[src]

impl<'de> Deserialize<'de> for Account[src]

impl Serialize for Account[src]

Auto Trait Implementations

impl RefUnwindSafe for Account

impl Send for Account

impl Sync for Account

impl Unpin for Account

impl UnwindSafe for Account

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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.