pub struct RegisterDevice { /* private fields */ }
Expand description
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription
Implementations§
Source§impl RegisterDevice
impl RegisterDevice
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
pub fn builder() -> RTDRegisterDeviceBuilder
pub fn device_token(&self) -> &DeviceToken
pub fn other_user_ids(&self) -> &Vec<i64>
Trait Implementations§
Source§impl AsRef<RegisterDevice> for RegisterDevice
impl AsRef<RegisterDevice> for RegisterDevice
Source§fn as_ref(&self) -> &RegisterDevice
fn as_ref(&self) -> &RegisterDevice
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for RegisterDevice
impl Clone for RegisterDevice
Source§fn clone(&self) -> RegisterDevice
fn clone(&self) -> RegisterDevice
Returns a duplicate 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 RegisterDevice
impl Debug for RegisterDevice
Source§impl Default for RegisterDevice
impl Default for RegisterDevice
Source§fn default() -> RegisterDevice
fn default() -> RegisterDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegisterDevice
impl<'de> Deserialize<'de> for RegisterDevice
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 RObject for RegisterDevice
impl RObject for RegisterDevice
Source§impl Serialize for RegisterDevice
impl Serialize for RegisterDevice
impl RFunction for RegisterDevice
Auto Trait Implementations§
impl Freeze for RegisterDevice
impl RefUnwindSafe for RegisterDevice
impl Send for RegisterDevice
impl Sync for RegisterDevice
impl Unpin for RegisterDevice
impl UnwindSafe for RegisterDevice
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