pub struct NotificationsResource<'a> { /* private fields */ }Expand description
client.notifications()
Implementations§
Source§impl<'a> NotificationsResource<'a>
impl<'a> NotificationsResource<'a>
Sourcepub fn test(&self) -> Result<()>
pub fn test(&self) -> Result<()>
Send a test push notification to my devices
POST /notifications/test
Sends a localized test push notification to the authenticated person’s registered push-capable devices. No request body or target person is needed. The response has no body. A 201 response does not confirm delivery: it is also returned when no device is registered, Safe Mode suppresses sending, or a handled proxy/network error occurs.
§Example
client.notifications().test()?;Trait Implementations§
Source§impl<'a> Clone for NotificationsResource<'a>
impl<'a> Clone for NotificationsResource<'a>
impl<'a> Copy for NotificationsResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for NotificationsResource<'a>
impl<'a> !UnwindSafe for NotificationsResource<'a>
impl<'a> Freeze for NotificationsResource<'a>
impl<'a> Send for NotificationsResource<'a>
impl<'a> Sync for NotificationsResource<'a>
impl<'a> Unpin for NotificationsResource<'a>
impl<'a> UnsafeUnpin for NotificationsResource<'a>
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