pub struct PublicRestModePeriod {
pub end_day: Option<IsoDate>,
pub end_time: Option<LocalizedDateTime>,
pub episodes: Vec<PublicRestModeEpisode>,
pub id: X,
pub start_day: IsoDate,
pub start_time: Option<LocalizedDateTime>,
}Expand description
Rest mode episode information.
JSON schema
{
"title": "PublicRestModePeriod",
"description": "Rest mode episode information.",
"type": "object",
"required": [
"episodes",
"id",
"start_day"
],
"properties": {
"end_day": {
"title": "",
"description": "End date of rest mode.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/ISODate"
}
]
}
]
},
"end_time": {
"title": "",
"description": "Timestamp when rest mode ended.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/LocalizedDateTime"
}
]
}
]
},
"episodes": {
"title": "",
"description": "Collection of episodes during rest mode, consisting of tags.",
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicRestModeEpisode"
}
},
"id": {
"title": "",
"description": "Unique identifier of the object.",
"type": "string",
"minLength": 1
},
"start_day": {
"$ref": "#/components/schemas/ISODate"
},
"start_time": {
"title": "",
"description": "Timestamp when rest mode ended.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/LocalizedDateTime"
}
]
}
]
}
},
"x-cloud-only": true,
"x-collection": "publicrestmodeperiod",
"x-owner": "sleep-squad"
}Fields§
§end_day: Option<IsoDate>End date of rest mode.
end_time: Option<LocalizedDateTime>Timestamp when rest mode ended.
episodes: Vec<PublicRestModeEpisode>Collection of episodes during rest mode, consisting of tags.
id: XUnique identifier of the object.
start_day: IsoDate§start_time: Option<LocalizedDateTime>Timestamp when rest mode ended.
Trait Implementations§
Source§impl Clone for PublicRestModePeriod
impl Clone for PublicRestModePeriod
Source§impl Debug for PublicRestModePeriod
impl Debug for PublicRestModePeriod
Source§impl<'de> Deserialize<'de> for PublicRestModePeriod
impl<'de> Deserialize<'de> for PublicRestModePeriod
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 PublicRestModePeriod
impl RefUnwindSafe for PublicRestModePeriod
impl Send for PublicRestModePeriod
impl Sync for PublicRestModePeriod
impl Unpin for PublicRestModePeriod
impl UnsafeUnpin for PublicRestModePeriod
impl UnwindSafe for PublicRestModePeriod
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