pub struct MonthlyReturn {
pub year: i32,
pub month: u32,
pub return_pct: f64,
pub complete: bool,
}Expand description
One calendar month’s return, measured close to close across the month boundary.
Fields§
§year: i32§month: u321 through 12.
return_pct: f64Percentage change from the previous month’s last close to this month’s last close.
complete: boolWhether this month’s last observed bar is known to be followed by another month.
The final month of a series is false: its last bar may or may not be the month’s last
trading day, and this cannot be told from the data alone. Such a month is excluded from
the statistics rather than counted as if it had closed.
Trait Implementations§
Source§impl Clone for MonthlyReturn
impl Clone for MonthlyReturn
Source§fn clone(&self) -> MonthlyReturn
fn clone(&self) -> MonthlyReturn
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 moreimpl Copy for MonthlyReturn
Source§impl Debug for MonthlyReturn
impl Debug for MonthlyReturn
Source§impl<'de> Deserialize<'de> for MonthlyReturn
impl<'de> Deserialize<'de> for MonthlyReturn
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 MonthlyReturn
impl PartialEq for MonthlyReturn
Source§impl Serialize for MonthlyReturn
impl Serialize for MonthlyReturn
impl StructuralPartialEq for MonthlyReturn
Auto Trait Implementations§
impl Freeze for MonthlyReturn
impl RefUnwindSafe for MonthlyReturn
impl Send for MonthlyReturn
impl Sync for MonthlyReturn
impl Unpin for MonthlyReturn
impl UnsafeUnpin for MonthlyReturn
impl UnwindSafe for MonthlyReturn
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