pub struct SleepResponse {
pub status: SleepResponseStatus,
}Expand description
Response from sleep operation
JSON schema
{
"description": "Response from sleep operation",
"type": "object",
"required": [
"status"
],
"properties": {
"status": {
"description": "\"sleeping\" if the client transitioned from awake to sleeping.\n\"already_sleeping\" if the client was already in sleeping state.\n",
"type": "string",
"enum": [
"sleeping",
"already_sleeping"
]
}
},
"example": {
"status": "sleeping"
}
}Fields§
§status: SleepResponseStatus“sleeping” if the client transitioned from awake to sleeping. “already_sleeping” if the client was already in sleeping state.
Trait Implementations§
Source§impl Clone for SleepResponse
impl Clone for SleepResponse
Source§fn clone(&self) -> SleepResponse
fn clone(&self) -> SleepResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 From<&SleepResponse> for SleepResponse
impl From<&SleepResponse> for SleepResponse
Source§fn from(value: &SleepResponse) -> Self
fn from(value: &SleepResponse) -> Self
Converts to this type from the input type.
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