pub struct RegisterDeviceRequest {
pub fcm_token: String,
pub device_id: Option<String>,
pub platform: Option<String>,
}Expand description
Request body for registering an FCM device token.
Serializes to camelCase JSON for POST to {host}/registerDevice.
Optional fields are omitted when None per TS wire format.
Fields§
§fcm_token: String§device_id: Option<String>§platform: Option<String>Trait Implementations§
Source§impl Clone for RegisterDeviceRequest
impl Clone for RegisterDeviceRequest
Source§fn clone(&self) -> RegisterDeviceRequest
fn clone(&self) -> RegisterDeviceRequest
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 RegisterDeviceRequest
impl Debug for RegisterDeviceRequest
Auto Trait Implementations§
impl Freeze for RegisterDeviceRequest
impl RefUnwindSafe for RegisterDeviceRequest
impl Send for RegisterDeviceRequest
impl Sync for RegisterDeviceRequest
impl Unpin for RegisterDeviceRequest
impl UnsafeUnpin for RegisterDeviceRequest
impl UnwindSafe for RegisterDeviceRequest
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