Struct investments::config::Config [−][src]
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>,
pub telemetry: TelemetryConfig,
}
Fields
db_path: String
cache_expire_time: Duration
deposits: Vec<DepositConfig>
notify_deposit_closing_days: Option<u32>
portfolios: Vec<PortfolioConfig>
brokers: Option<BrokersConfig>
tax_rates: TaxRates
metrics: MetricsConfig
alphavantage: Option<AlphaVantageConfig>
finnhub: Option<FinnhubConfig>
twelvedata: Option<TwelveDataConfig>
telemetry: TelemetryConfig
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more