pub struct NewTask {
pub kind: TaskKind,
pub title: String,
pub notes: String,
pub scope: MemoryScope,
pub due: Option<Timestamp>,
pub remind_at: Option<Timestamp>,
pub repeat: Option<Repeat>,
pub deliver_to: Option<ChannelId>,
pub paused: bool,
}Expand description
A task to create.
Fields§
§kind: TaskKindWhat it does.
title: StringShort title.
notes: StringFree notes; the prompt of a routine.
scope: MemoryScopePersonal (User) or for the room (Room); Global is refused.
due: Option<Timestamp>When it should be done.
remind_at: Option<Timestamp>The first firing.
repeat: Option<Repeat>How it repeats.
deliver_to: Option<ChannelId>Where it fires (None: here).
paused: boolCreated paused (routines that need confirmation).
Implementations§
Trait Implementations§
impl Eq for NewTask
impl StructuralPartialEq for NewTask
Auto Trait Implementations§
impl Freeze for NewTask
impl RefUnwindSafe for NewTask
impl Send for NewTask
impl Sync for NewTask
impl Unpin for NewTask
impl UnsafeUnpin for NewTask
impl UnwindSafe for NewTask
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