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 Default for DeviceRequestModel
impl Default for DeviceRequestModel
Source§fn default() -> DeviceRequestModel
fn default() -> DeviceRequestModel
Returns the “default value” for a type. Read more
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§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