pub enum Request {
Show {
id: u64,
notification: Notification,
},
Withdraw {
id: u64,
tag: String,
},
Schedule {
id: u64,
notification: Notification,
at: SystemTime,
},
ScheduleAlarm {
id: u64,
notification: Notification,
at: SystemTime,
alarm: AlarmRequest,
},
Scheduled {
id: u64,
},
AlarmStates {
id: u64,
},
CancelScheduled {
id: u64,
tag: String,
},
PriorityContacts {
id: u64,
contacts: Vec<PriorityContact>,
},
}Expand description
One call an app makes. Each names an id its Answer comes back under; the id is the
app’s own and means nothing to the session.
Variants§
Show
Withdraw
Schedule
ScheduleAlarm
Scheduled
AlarmStates
CancelScheduled
PriorityContacts
Replace the people whose messages break through focus and Do Not Disturb with the ones this app knows of.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Forget for Request
impl Freeze for Requestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<NotificationButton>: Freeze,
PhantomData<PriorityContact>: Freeze,
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Requestwhere
RawVecInner: Send,
impl Sync for Requestwhere
RawVecInner: Sync,
impl Unpin for Request
impl UnsafeUnpin for Requestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<NotificationButton>: UnsafeUnpin,
PhantomData<PriorityContact>: UnsafeUnpin,
impl UnwindSafe for Requestwhere
RawVecInner: UnwindSafe,
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