#[non_exhaustive]pub struct CalendarYear {
pub starts_at: DateTime,
pub ends_at: DateTime,
pub kind: String,
pub padding_days_count: i32,
pub days: Vec<CalendarYearDay>,
pub spanned_events: Vec<Recording>,
}Expand description
CalendarYear — the grid a year is drawn as. A year carries one entry per day plus the events that span more than one, not every recording it holds: a year’s worth of expanded occurrences is not something a client asks for by opening a year.
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.starts_at: DateTimeISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
ends_at: DateTimeISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
kind: String“year”
padding_days_count: i32Days between the reader’s week start and January 1st, so the grid lines up
days: Vec<CalendarYearDay>§spanned_events: Vec<Recording>All-day and multi-day events, oldest first
Trait Implementations§
Source§impl Clone for CalendarYear
impl Clone for CalendarYear
Source§fn clone(&self) -> CalendarYear
fn clone(&self) -> CalendarYear
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 CalendarYear
impl Debug for CalendarYear
Source§impl Default for CalendarYear
impl Default for CalendarYear
Source§fn default() -> CalendarYear
fn default() -> CalendarYear
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CalendarYear
impl<'de> Deserialize<'de> for CalendarYear
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 CalendarYear
impl PartialEq for CalendarYear
Source§impl Serialize for CalendarYear
impl Serialize for CalendarYear
impl StructuralPartialEq for CalendarYear
Auto Trait Implementations§
impl Freeze for CalendarYear
impl RefUnwindSafe for CalendarYear
impl Send for CalendarYear
impl Sync for CalendarYear
impl Unpin for CalendarYear
impl UnsafeUnpin for CalendarYear
impl UnwindSafe for CalendarYear
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