Struct rust_tdlib::types::RegisterDevice
source · [−]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
sourceimpl RegisterDevice
impl RegisterDevice
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> RegisterDeviceBuilder
pub fn device_token(&self) -> &DeviceToken
pub fn other_user_ids(&self) -> &Vec<i64>
Trait Implementations
sourceimpl AsRef<RegisterDevice> for RegisterDevice
impl AsRef<RegisterDevice> for RegisterDevice
sourcefn as_ref(&self) -> &RegisterDevice
fn as_ref(&self) -> &RegisterDevice
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for RegisterDevice
impl Clone for RegisterDevice
sourcefn clone(&self) -> RegisterDevice
fn clone(&self) -> RegisterDevice
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RegisterDevice
impl Debug for RegisterDevice
sourceimpl Default for RegisterDevice
impl Default for RegisterDevice
sourcefn default() -> RegisterDevice
fn default() -> RegisterDevice
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for RegisterDevice
impl<'de> Deserialize<'de> for RegisterDevice
sourcefn 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
sourceimpl Serialize for RegisterDevice
impl Serialize for RegisterDevice
Auto Trait Implementations
impl RefUnwindSafe for RegisterDevice
impl Send for RegisterDevice
impl Sync for RegisterDevice
impl Unpin for RegisterDevice
impl UnwindSafe for RegisterDevice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more