pub struct PublicDailySleep {
pub contributors: PublicSleepContributors,
pub day: IsoDate,
pub id: X,
pub score: Option<i64>,
pub timestamp: LocalizedDateTime,
}Expand description
Public object defining daily sleep.
JSON schema
{
"title": "PublicDailySleep",
"description": "Public object defining daily sleep.",
"type": "object",
"required": [
"contributors",
"day",
"id",
"timestamp"
],
"properties": {
"contributors": {
"$ref": "#/components/schemas/PublicSleepContributors"
},
"day": {
"$ref": "#/components/schemas/ISODate"
},
"id": {
"title": "",
"description": "Unique identifier of the object.",
"type": "string",
"minLength": 1
},
"score": {
"title": "",
"description": "Daily sleep score.",
"type": [
"integer",
"null"
]
},
"timestamp": {
"$ref": "#/components/schemas/LocalizedDateTime"
}
},
"x-cloud-only": true,
"x-collection": "publicdailysleep",
"x-owner": "sleep-squad"
}Fields§
§contributors: PublicSleepContributors§day: IsoDate§id: XUnique identifier of the object.
score: Option<i64>Daily sleep score.
timestamp: LocalizedDateTimeTrait Implementations§
Source§impl Clone for PublicDailySleep
impl Clone for PublicDailySleep
Source§impl Debug for PublicDailySleep
impl Debug for PublicDailySleep
Source§impl<'de> Deserialize<'de> for PublicDailySleep
impl<'de> Deserialize<'de> for PublicDailySleep
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 PublicDailySleep
impl RefUnwindSafe for PublicDailySleep
impl Send for PublicDailySleep
impl Sync for PublicDailySleep
impl Unpin for PublicDailySleep
impl UnsafeUnpin for PublicDailySleep
impl UnwindSafe for PublicDailySleep
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