pub struct RegisteredDevice {
pub id: Option<i64>,
pub device_id: Option<String>,
pub platform: Option<String>,
pub fcm_token: String,
pub active: Option<bool>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub last_used: Option<String>,
}Expand description
A registered device record as returned by the server’s /devices endpoint.
All fields are Option because the server may omit any of them.
Includes ALL known server fields to prevent deserialization failures
against go-messagebox-server.
Fields§
§id: Option<i64>§device_id: Option<String>§platform: Option<String>§fcm_token: String§active: Option<bool>§created_at: Option<String>§updated_at: Option<String>§last_used: Option<String>Trait Implementations§
Source§impl Clone for RegisteredDevice
impl Clone for RegisteredDevice
Source§fn clone(&self) -> RegisteredDevice
fn clone(&self) -> RegisteredDevice
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 RegisteredDevice
impl Debug for RegisteredDevice
Source§impl<'de> Deserialize<'de> for RegisteredDevice
impl<'de> Deserialize<'de> for RegisteredDevice
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 RegisteredDevice
impl RefUnwindSafe for RegisteredDevice
impl Send for RegisteredDevice
impl Sync for RegisteredDevice
impl Unpin for RegisteredDevice
impl UnsafeUnpin for RegisteredDevice
impl UnwindSafe for RegisteredDevice
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