pub struct PortfolioHistoryParams {
pub period: Option<String>,
pub timeframe: Option<String>,
pub date_end: Option<String>,
pub extended_hours: Option<bool>,
pub intraday_reporting: Option<String>,
pub pnl_reset: Option<String>,
}Expand description
Parameters for portfolio history.
Fields§
§period: Option<String>Period.
timeframe: Option<String>Timeframe.
date_end: Option<String>End date.
extended_hours: Option<bool>Include extended hours.
intraday_reporting: Option<String>Intraday reporting.
pnl_reset: Option<String>PnL reset.
Implementations§
Source§impl PortfolioHistoryParams
impl PortfolioHistoryParams
Sourcepub fn new() -> PortfolioHistoryParams
pub fn new() -> PortfolioHistoryParams
Create new empty parameters.
Sourcepub fn period(self, period: PortfolioPeriod) -> PortfolioHistoryParams
pub fn period(self, period: PortfolioPeriod) -> PortfolioHistoryParams
Set period.
Sourcepub fn timeframe(self, timeframe: PortfolioTimeframe) -> PortfolioHistoryParams
pub fn timeframe(self, timeframe: PortfolioTimeframe) -> PortfolioHistoryParams
Set timeframe.
Sourcepub fn date_end(self, date_end: &str) -> PortfolioHistoryParams
pub fn date_end(self, date_end: &str) -> PortfolioHistoryParams
Set end date.
Sourcepub fn extended_hours(self, extended_hours: bool) -> PortfolioHistoryParams
pub fn extended_hours(self, extended_hours: bool) -> PortfolioHistoryParams
Include extended hours.
Trait Implementations§
Source§impl Clone for PortfolioHistoryParams
impl Clone for PortfolioHistoryParams
Source§fn clone(&self) -> PortfolioHistoryParams
fn clone(&self) -> PortfolioHistoryParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PortfolioHistoryParams
impl Debug for PortfolioHistoryParams
Source§impl Default for PortfolioHistoryParams
impl Default for PortfolioHistoryParams
Source§fn default() -> PortfolioHistoryParams
fn default() -> PortfolioHistoryParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PortfolioHistoryParams
impl<'de> Deserialize<'de> for PortfolioHistoryParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortfolioHistoryParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortfolioHistoryParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PortfolioHistoryParams
impl Serialize for PortfolioHistoryParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PortfolioHistoryParams
impl RefUnwindSafe for PortfolioHistoryParams
impl Send for PortfolioHistoryParams
impl Sync for PortfolioHistoryParams
impl Unpin for PortfolioHistoryParams
impl UnwindSafe for PortfolioHistoryParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more