pub struct SleepResponse {
pub ok: bool,
pub is_sleeping: bool,
}Expand description
The answer to POST /sleep and POST /wake_up.
is_sleeping is the state AFTER the call, so a caller does not
have to follow up with GET /is_sleeping to learn whether the
thing it asked for happened.
Fields§
§ok: bool§is_sleeping: boolTrait Implementations§
Source§impl Clone for SleepResponse
impl Clone for SleepResponse
Source§impl Debug for SleepResponse
impl Debug for SleepResponse
Source§impl<'de> Deserialize<'de> for SleepResponse
impl<'de> Deserialize<'de> for SleepResponse
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 SleepResponse
impl PartialEq for SleepResponse
Source§impl Serialize for SleepResponse
impl Serialize for SleepResponse
impl StructuralPartialEq for SleepResponse
Auto Trait Implementations§
impl Freeze for SleepResponse
impl RefUnwindSafe for SleepResponse
impl Send for SleepResponse
impl Sync for SleepResponse
impl Unpin for SleepResponse
impl UnsafeUnpin for SleepResponse
impl UnwindSafe for SleepResponse
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