[][src]Struct investments::config::Config

pub struct Config {
    pub db_path: String,
    pub cache_expire_time: Duration,
    pub deposits: Vec<DepositConfig>,
    pub notify_deposit_closing_days: Option<u32>,
    pub portfolios: Vec<PortfolioConfig>,
    pub brokers: Option<BrokersConfig>,
    pub tax_rates: TaxRates,
    pub metrics: MetricsConfig,
    pub alphavantage: Option<AlphaVantageConfig>,
    pub finnhub: Option<FinnhubConfig>,
    pub twelvedata: Option<TwelveDataConfig>,
}

Fields

db_path: Stringcache_expire_time: Durationdeposits: Vec<DepositConfig>notify_deposit_closing_days: Option<u32>portfolios: Vec<PortfolioConfig>brokers: Option<BrokersConfig>tax_rates: TaxRatesmetrics: MetricsConfigalphavantage: Option<AlphaVantageConfig>finnhub: Option<FinnhubConfig>twelvedata: Option<TwelveDataConfig>

Implementations

impl Config[src]

Trait Implementations

impl Debug for Config[src]

impl<'de> Deserialize<'de> for Config[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> 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>,