pub struct RegisterDeviceResponse {
pub status: String,
pub message: Option<String>,
pub device_id: Option<i64>,
}Expand description
Response from the /registerDevice endpoint.
TS returns { status, message, deviceId }.
Fields§
§status: String§message: Option<String>§device_id: Option<i64>Trait Implementations§
Source§impl Clone for RegisterDeviceResponse
impl Clone for RegisterDeviceResponse
Source§fn clone(&self) -> RegisterDeviceResponse
fn clone(&self) -> RegisterDeviceResponse
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 RegisterDeviceResponse
impl Debug for RegisterDeviceResponse
Source§impl<'de> Deserialize<'de> for RegisterDeviceResponse
impl<'de> Deserialize<'de> for RegisterDeviceResponse
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 RegisterDeviceResponse
impl RefUnwindSafe for RegisterDeviceResponse
impl Send for RegisterDeviceResponse
impl Sync for RegisterDeviceResponse
impl Unpin for RegisterDeviceResponse
impl UnsafeUnpin for RegisterDeviceResponse
impl UnwindSafe for RegisterDeviceResponse
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