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: String
broker: Broker
plan: Option<String>
statements: String
symbol_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: PerformanceMergingConfig
assets: 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]
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,
pub 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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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.
pub 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>,