pub struct PublicSession {
pub day: IsoDate,
pub end_datetime: LocalizedDateTime,
pub heart_rate: Option<PublicSample>,
pub heart_rate_variability: Option<PublicSample>,
pub id: X,
pub mood: Option<PublicMomentMood>,
pub motion_count: Option<PublicSample>,
pub start_datetime: LocalizedDateTime,
pub type_: PublicMomentType,
}Expand description
Public model defining a recorded Session.
JSON schema
{
"title": "PublicSession",
"description": "Public model defining a recorded Session.",
"type": "object",
"required": [
"day",
"end_datetime",
"id",
"start_datetime",
"type"
],
"properties": {
"day": {
"$ref": "#/components/schemas/ISODate"
},
"end_datetime": {
"$ref": "#/components/schemas/LocalizedDateTime"
},
"heart_rate": {
"title": "",
"description": "Recorded heart rate samples during the Moment.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/PublicSample"
}
]
}
]
},
"heart_rate_variability": {
"title": "",
"description": "Recorded heart rate variability samples during the Moment.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/PublicSample"
}
]
}
]
},
"id": {
"title": "",
"description": "Unique identifier of the object.",
"type": "string",
"minLength": 1
},
"mood": {
"title": "",
"description": "User-selected mood for the Moment.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/PublicMomentMood"
}
]
}
]
},
"motion_count": {
"title": "",
"description": "Recorded motion count samples during the Moment.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/PublicSample"
}
]
}
]
},
"start_datetime": {
"$ref": "#/components/schemas/LocalizedDateTime"
},
"type": {
"$ref": "#/components/schemas/PublicMomentType"
}
},
"x-cloud-only": true,
"x-collection": "publicsession",
"x-owner": "wellbeing-squad"
}Fields§
§day: IsoDate§end_datetime: LocalizedDateTime§heart_rate: Option<PublicSample>Recorded heart rate samples during the Moment.
heart_rate_variability: Option<PublicSample>Recorded heart rate variability samples during the Moment.
id: XUnique identifier of the object.
mood: Option<PublicMomentMood>User-selected mood for the Moment.
motion_count: Option<PublicSample>Recorded motion count samples during the Moment.
start_datetime: LocalizedDateTime§type_: PublicMomentTypeTrait Implementations§
Source§impl Clone for PublicSession
impl Clone for PublicSession
Source§impl Debug for PublicSession
impl Debug for PublicSession
Source§impl<'de> Deserialize<'de> for PublicSession
impl<'de> Deserialize<'de> for PublicSession
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 PublicSession
impl RefUnwindSafe for PublicSession
impl Send for PublicSession
impl Sync for PublicSession
impl Unpin for PublicSession
impl UnsafeUnpin for PublicSession
impl UnwindSafe for PublicSession
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