[][src]Struct investments::config::PortfolioConfig

pub struct PortfolioConfig {
    pub name: String,
    pub broker: Broker,
    pub plan: Option<String>,
    pub statements: String,
    pub symbol_remapping: HashMap<String, String>,
    pub instrument_names: HashMap<String, String>,
    pub currency: Option<String>,
    pub min_trade_volume: Option<Decimal>,
    pub min_cash_assets: Option<Decimal>,
    pub restrict_buying: Option<bool>,
    pub restrict_selling: Option<bool>,
    pub merge_performance: HashMap<String, HashSet<String>>,
    pub assets: Vec<AssetAllocationConfig>,
    pub tax_payment_day: TaxPaymentDay,
    pub tax_deductions: Vec<(Date, Decimal)>,
    // some fields omitted
}

Fields

name: Stringbroker: Brokerplan: Option<String>statements: Stringsymbol_remapping: HashMap<String, String>instrument_names: HashMap<String, String>currency: Option<String>min_trade_volume: Option<Decimal>min_cash_assets: Option<Decimal>restrict_buying: Option<bool>restrict_selling: Option<bool>merge_performance: HashMap<String, HashSet<String>>assets: Vec<AssetAllocationConfig>tax_payment_day: TaxPaymentDaytax_deductions: Vec<(Date, Decimal)>

Implementations

impl PortfolioConfig[src]

Trait Implementations

impl Debug for PortfolioConfig[src]

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

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

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

impl<T> IntoSql for T[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,