pub struct PublicRingBatteryLevelRow {
pub charging: Option<bool>,
pub in_charger: Option<bool>,
pub level: i64,
pub timestamp: UtcDateTime,
pub timestamp_unix: i64,
}Expand description
Object defining a ring battery level event.
JSON schema
{
"title": "PublicRingBatteryLevelRow",
"description": "Object defining a ring battery level event.",
"type": "object",
"required": [
"level",
"timestamp",
"timestamp_unix"
],
"properties": {
"charging": {
"title": "",
"description": "Flag indicating if the ring was charging.",
"type": [
"boolean",
"null"
]
},
"in_charger": {
"title": "",
"description": "Flag indicating if the ring was in charger.",
"type": [
"boolean",
"null"
]
},
"level": {
"title": "",
"description": "Ring battery level percentage. These values are within [0, 100].",
"type": "integer"
},
"timestamp": {
"$ref": "#/components/schemas/UtcDateTime"
},
"timestamp_unix": {
"title": "",
"description": "Timestamp of the discrete sample as unix time in milliseconds.",
"type": "integer"
}
},
"x-cloud-only": true,
"x-collection": "publicringbatterylevel",
"x-owner": "connectivity-squad"
}Fields§
§charging: Option<bool>Flag indicating if the ring was charging.
in_charger: Option<bool>Flag indicating if the ring was in charger.
level: i64Ring battery level percentage. These values are within [0, 100].
timestamp: UtcDateTime§timestamp_unix: i64Timestamp of the discrete sample as unix time in milliseconds.
Trait Implementations§
Source§impl Clone for PublicRingBatteryLevelRow
impl Clone for PublicRingBatteryLevelRow
Source§fn clone(&self) -> PublicRingBatteryLevelRow
fn clone(&self) -> PublicRingBatteryLevelRow
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 PublicRingBatteryLevelRow
impl Debug for PublicRingBatteryLevelRow
Source§impl<'de> Deserialize<'de> for PublicRingBatteryLevelRow
impl<'de> Deserialize<'de> for PublicRingBatteryLevelRow
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 PublicRingBatteryLevelRow
impl RefUnwindSafe for PublicRingBatteryLevelRow
impl Send for PublicRingBatteryLevelRow
impl Sync for PublicRingBatteryLevelRow
impl Unpin for PublicRingBatteryLevelRow
impl UnsafeUnpin for PublicRingBatteryLevelRow
impl UnwindSafe for PublicRingBatteryLevelRow
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