pub struct DeviceRecord {
pub device_id: String,
pub device_type: DeviceType,
pub name: String,
pub token_hash: String,
pub last_seen: Option<i64>,
pub battery_pct: Option<i32>,
pub prefs: Value,
pub ambient_meeting_id: Option<String>,
pub created_at: i64,
}Expand description
A paired device row. The token_hash is stored, never the raw token.
Fields§
§device_id: String§device_type: DeviceType§name: String§token_hash: StringLowercase hex SHA-256 of the Bearer token (raw token shown once at pairing).
last_seen: Option<i64>Epoch ms of last WS activity, or None if never connected.
battery_pct: Option<i32>Latest reported battery percent, or None.
prefs: ValueFree-form per-device prefs (JSON), e.g. wake word, ambient on/off.
ambient_meeting_id: Option<String>The long-running ambient meeting this device resumes on reconnect, so a
reconnecting ambient device feeds the SAME meeting rather than spawning a
fresh one each hello (PROTOCOL.md §4.2). None until first opened.
created_at: i64Trait Implementations§
Source§impl Clone for DeviceRecord
impl Clone for DeviceRecord
Source§fn clone(&self) -> DeviceRecord
fn clone(&self) -> DeviceRecord
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 moreAuto Trait Implementations§
impl Freeze for DeviceRecord
impl RefUnwindSafe for DeviceRecord
impl Send for DeviceRecord
impl Sync for DeviceRecord
impl Unpin for DeviceRecord
impl UnsafeUnpin for DeviceRecord
impl UnwindSafe for DeviceRecord
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