pub struct DeviceRequestModel {
pub type: DeviceType,
pub name: String,
pub identifier: String,
pub push_token: Option<String>,
}
Fields§
§type: DeviceType
§name: String
§identifier: String
§push_token: Option<String>
Implementations§
source§impl DeviceRequestModel
impl DeviceRequestModel
pub fn new( type: DeviceType, name: String, identifier: String ) -> DeviceRequestModel
Trait Implementations§
source§impl Clone for DeviceRequestModel
impl Clone for DeviceRequestModel
source§fn clone(&self) -> DeviceRequestModel
fn clone(&self) -> DeviceRequestModel
Returns a copy of the value. Read more
1.0.0 · 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 DeviceRequestModel
impl Debug for DeviceRequestModel
source§impl<'de> Deserialize<'de> for DeviceRequestModel
impl<'de> Deserialize<'de> for DeviceRequestModel
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
source§impl PartialEq for DeviceRequestModel
impl PartialEq for DeviceRequestModel
source§fn eq(&self, other: &DeviceRequestModel) -> bool
fn eq(&self, other: &DeviceRequestModel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DeviceRequestModel
impl Serialize for DeviceRequestModel
impl StructuralPartialEq for DeviceRequestModel
Auto Trait Implementations§
impl Freeze for DeviceRequestModel
impl RefUnwindSafe for DeviceRequestModel
impl Send for DeviceRequestModel
impl Sync for DeviceRequestModel
impl Unpin for DeviceRequestModel
impl UnwindSafe for DeviceRequestModel
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