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

pub struct PortfolioConfig {
Show fields 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 corporate_actions: Vec<CorporateAction>, 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: PerformanceMergingConfig, pub assets: Vec<AssetAllocationConfig>, pub tax_exemptions: Vec<TaxExemption>, 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>corporate_actions: Vec<CorporateAction>currency: Option<String>min_trade_volume: Option<Decimal>min_cash_assets: Option<Decimal>restrict_buying: Option<bool>restrict_selling: Option<bool>merge_performance: PerformanceMergingConfigassets: Vec<AssetAllocationConfig>tax_exemptions: Vec<TaxExemption>tax_deductions: Vec<(Date, Decimal)>

Implementations

impl PortfolioConfig[src]

pub fn currency(&self) -> GenericResult<&str>[src]

pub fn get_stock_symbols(&self) -> HashSet<String>[src]

pub fn tax_payment_day(&self) -> TaxPaymentDay[src]

pub fn get_tax_remapping(&self) -> GenericResult<TaxRemapping>[src]

pub fn close_date() -> Date[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> Instrument for T[src]

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

impl<T> IntoSql for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

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>,