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 Request
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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