pub struct CalendarResponse {
pub how_to_read: String,
pub items: Vec<CalendarItem>,
pub unreadable_obligations: Option<UnreadableObligations>,
}Expand description
The platform calendar, as get_content("calendar") serves it (0.72)
Fields§
§how_to_read: StringHow to read it
items: Vec<CalendarItem>What is coming up, soonest first
unreadable_obligations: Option<UnreadableObligations>Obligations that could not be read, so their deadlines are not in
items (0.87)
Implementations§
Source§impl CalendarResponse
impl CalendarResponse
Sourcepub fn new(
calendar: &Calendar,
obligations: &[ResolvedObligation],
unreadable: Vec<GovernanceLogId>,
) -> Self
pub fn new( calendar: &Calendar, obligations: &[ResolvedObligation], unreadable: Vec<GovernanceLogId>, ) -> Self
The calendar get_content("calendar") serves: every item still to
come, up to CALENDAR_LIMIT
Trait Implementations§
Source§impl Clone for CalendarResponse
impl Clone for CalendarResponse
Source§impl Debug for CalendarResponse
impl Debug for CalendarResponse
Source§impl<'de> Deserialize<'de> for CalendarResponse
impl<'de> Deserialize<'de> for CalendarResponse
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 CalendarResponse
impl RefUnwindSafe for CalendarResponse
impl Send for CalendarResponse
impl Sync for CalendarResponse
impl Unpin for CalendarResponse
impl UnsafeUnpin for CalendarResponse
impl UnwindSafe for CalendarResponse
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