trading212 0.2.15

A library for interacting with the Trading212 API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Dividend cash action.

/// What action to take with the dividend cash.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum DividendCashAction {
    /// Reinvest
    #[serde(rename = "REINVEST")]
    Reinvest,
    /// To account cash
    #[serde(rename = "TO_ACCOUNT_CASH")]
    ToAccountCash,
}

impl Default for DividendCashAction {
    fn default() -> Self {
        Self::Reinvest
    }
}