pub struct PublicSleepTime {
pub day: IsoDate,
pub id: X,
pub optimal_bedtime: Option<PublicSleepTimeWindow>,
pub recommendation: Option<PublicSleepTimeRecommendation>,
pub status: Option<PublicSleepTimeStatus>,
}Expand description
Suggested bedtime for the user.
JSON schema
{
"title": "PublicSleepTime",
"description": "Suggested bedtime for the user.",
"type": "object",
"required": [
"day",
"id"
],
"properties": {
"day": {
"$ref": "#/components/schemas/ISODate"
},
"id": {
"title": "",
"description": "Unique identifier of the object.",
"type": "string",
"minLength": 1
},
"optimal_bedtime": {
"title": "",
"description": "Optimal bedtime.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/PublicSleepTimeWindow"
}
]
}
]
},
"recommendation": {
"title": "",
"description": "Recommended action for bedtime.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/PublicSleepTimeRecommendation"
}
]
}
]
},
"status": {
"title": "",
"description": "Sleep time status; used to inform sleep time recommendation.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/PublicSleepTimeStatus"
}
]
}
]
}
},
"x-cloud-only": true,
"x-collection": "publicsleeptime",
"x-owner": "sleep-squad"
}Fields§
§day: IsoDate§id: XUnique identifier of the object.
optimal_bedtime: Option<PublicSleepTimeWindow>Optimal bedtime.
recommendation: Option<PublicSleepTimeRecommendation>Recommended action for bedtime.
status: Option<PublicSleepTimeStatus>Sleep time status; used to inform sleep time recommendation.
Trait Implementations§
Source§impl Clone for PublicSleepTime
impl Clone for PublicSleepTime
Source§fn clone(&self) -> PublicSleepTime
fn clone(&self) -> PublicSleepTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PublicSleepTime
impl Debug for PublicSleepTime
Source§impl<'de> Deserialize<'de> for PublicSleepTime
impl<'de> Deserialize<'de> for PublicSleepTime
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
Auto Trait Implementations§
impl Freeze for PublicSleepTime
impl RefUnwindSafe for PublicSleepTime
impl Send for PublicSleepTime
impl Sync for PublicSleepTime
impl Unpin for PublicSleepTime
impl UnsafeUnpin for PublicSleepTime
impl UnwindSafe for PublicSleepTime
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