pub struct SeasonalityReport {
pub monthly_returns: Vec<MonthlyReturn>,
pub months: Vec<MonthStatistics>,
pub as_of: i64,
pub completed_months: usize,
}Expand description
Monthly seasonality of a price series: what each calendar month did, historically.
Fields§
§monthly_returns: Vec<MonthlyReturn>Every month found in the series, oldest first, including the incomplete final one.
months: Vec<MonthStatistics>One entry per calendar month that has at least one completed observation, ascending by month number.
as_of: i64Timestamp of the last bar the report was computed from — the data cut-off it belongs to.
completed_months: usizeHow many completed monthly returns went into the statistics.
Trait Implementations§
Source§impl Clone for SeasonalityReport
impl Clone for SeasonalityReport
Source§fn clone(&self) -> SeasonalityReport
fn clone(&self) -> SeasonalityReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SeasonalityReport
impl Debug for SeasonalityReport
Source§impl<'de> Deserialize<'de> for SeasonalityReport
impl<'de> Deserialize<'de> for SeasonalityReport
Source§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
Source§impl PartialEq for SeasonalityReport
impl PartialEq for SeasonalityReport
Source§impl Serialize for SeasonalityReport
impl Serialize for SeasonalityReport
impl StructuralPartialEq for SeasonalityReport
Auto Trait Implementations§
impl Freeze for SeasonalityReport
impl RefUnwindSafe for SeasonalityReport
impl Send for SeasonalityReport
impl Sync for SeasonalityReport
impl Unpin for SeasonalityReport
impl UnsafeUnpin for SeasonalityReport
impl UnwindSafe for SeasonalityReport
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