#[non_exhaustive]pub struct SummaryResponse {
pub data: Vec<SummaryData>,
pub end: String,
pub start: String,
pub cumulative_total: Option<CumulativeTotal>,
pub daily_average: Option<DailyAverage>,
}Expand description
Top-level envelope returned by GET /users/current/summaries.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data: Vec<SummaryData>Per-day summary entries (one per calendar day in the requested range).
end: StringISO 8601 end of the requested range.
start: StringISO 8601 start of the requested range.
cumulative_total: Option<CumulativeTotal>Cumulative total across all days in the requested range.
daily_average: Option<DailyAverage>Daily coding average for the requested range.
Trait Implementations§
Source§impl Clone for SummaryResponse
impl Clone for SummaryResponse
Source§fn clone(&self) -> SummaryResponse
fn clone(&self) -> SummaryResponse
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 SummaryResponse
impl Debug for SummaryResponse
Source§impl<'de> Deserialize<'de> for SummaryResponse
impl<'de> Deserialize<'de> for SummaryResponse
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
Auto Trait Implementations§
impl Freeze for SummaryResponse
impl RefUnwindSafe for SummaryResponse
impl Send for SummaryResponse
impl Sync for SummaryResponse
impl Unpin for SummaryResponse
impl UnsafeUnpin for SummaryResponse
impl UnwindSafe for SummaryResponse
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