pub enum PublicSleepType {
Deleted,
Sleep,
LongSleep,
LateNap,
Rest,
}Expand description
Possible sleep period types. ‘deleted’ = deleted sleep by user. ‘sleep’ = user confirmed sleep / nap, min 15 minutes, max 3 hours, contributes to daily scores ‘late_nap’ = user confirmed sleep / nap, min 15 minutes, ended after sleep day change (6 pm), contributes to next days daily scores ‘long_sleep’ = sleep that is long enough (>3h) to automatically contribute to daily scores ‘rest’ = Falsely detected sleep / nap, rejected in confirm prompt by user
JSON schema
{
"title": "PublicSleepType",
"description": "Possible sleep period types.\n'deleted' = deleted sleep by user.\n'sleep' = user confirmed sleep / nap, min 15 minutes, max 3 hours, contributes to daily scores\n'late_nap' = user confirmed sleep / nap, min 15 minutes, ended after sleep day change (6 pm), contributes to next days daily scores\n'long_sleep' = sleep that is long enough (>3h) to automatically contribute to daily scores\n'rest' = Falsely detected sleep / nap, rejected in confirm prompt by user",
"type": "string",
"enum": [
"deleted",
"sleep",
"long_sleep",
"late_nap",
"rest"
]
}Variants§
Trait Implementations§
Source§impl Clone for PublicSleepType
impl Clone for PublicSleepType
impl Copy for PublicSleepType
Source§impl Debug for PublicSleepType
impl Debug for PublicSleepType
Source§impl<'de> Deserialize<'de> for PublicSleepType
impl<'de> Deserialize<'de> for PublicSleepType
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 Display for PublicSleepType
impl Display for PublicSleepType
impl Eq for PublicSleepType
Source§impl FromStr for PublicSleepType
impl FromStr for PublicSleepType
Source§impl Hash for PublicSleepType
impl Hash for PublicSleepType
Source§impl Ord for PublicSleepType
impl Ord for PublicSleepType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PublicSleepType
impl PartialEq for PublicSleepType
Source§impl PartialOrd for PublicSleepType
impl PartialOrd for PublicSleepType
Source§impl Serialize for PublicSleepType
impl Serialize for PublicSleepType
impl StructuralPartialEq for PublicSleepType
Source§impl TryFrom<&String> for PublicSleepType
impl TryFrom<&String> for PublicSleepType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for PublicSleepType
impl TryFrom<&str> for PublicSleepType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for PublicSleepType
impl TryFrom<String> for PublicSleepType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for PublicSleepType
impl RefUnwindSafe for PublicSleepType
impl Send for PublicSleepType
impl Sync for PublicSleepType
impl Unpin for PublicSleepType
impl UnsafeUnpin for PublicSleepType
impl UnwindSafe for PublicSleepType
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