[−][src]Struct investments::config::PortfolioConfig
Fields
name: String
broker: Broker
plan: Option<String>
statements: String
symbol_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: TaxPaymentDay
tax_deductions: Vec<(Date, Decimal)>
Implementations
impl PortfolioConfig
[src]
pub fn get_stock_symbols(&self) -> HashSet<String>
[src]
pub fn get_tax_country(&self) -> Country
[src]
pub fn get_tax_remapping(&self) -> GenericResult<TaxRemapping>
[src]
Trait Implementations
impl Debug for PortfolioConfig
[src]
impl<'de> Deserialize<'de> for PortfolioConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for PortfolioConfig
impl Send for PortfolioConfig
impl Sync for PortfolioConfig
impl Unpin for PortfolioConfig
impl UnwindSafe for PortfolioConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,