[][src]Struct kapitalist_types::request::WalletCreationRequest

pub struct WalletCreationRequest {
    pub name: String,
    pub wallet_type: String,
    pub balance: Option<i64>,
    pub color: Option<String>,
}

Request to create a new wallet

Fields

name: String

Name of the wallet to create

wallet_type: String

Type of the wallet to create

Currently this is a String but it might be changed to an enum in the future.

balance: Option<i64>

Initial balance of the wallet to create

color: Option<String>

(Background) Color of the wallet to create

May be None in which case a random color is assigned

Trait Implementations

impl Debug for WalletCreationRequest[src]

impl Serialize for WalletCreationRequest[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]