pub struct NotificationPreferencesResource { /* private fields */ }Expand description
Notification preferences resource handle.
Implementations§
Source§impl NotificationPreferencesResource
impl NotificationPreferencesResource
Sourcepub async fn get(&self) -> Result<NotificationPreferences, Error>
pub async fn get(&self) -> Result<NotificationPreferences, Error>
Get the current user’s notification preferences.
Sourcepub async fn update(
&self,
params: UpdateNotificationPreferences,
) -> Result<NotificationPreferences, Error>
pub async fn update( &self, params: UpdateNotificationPreferences, ) -> Result<NotificationPreferences, Error>
Update the current user’s notification preferences.
Trait Implementations§
Source§impl Clone for NotificationPreferencesResource
impl Clone for NotificationPreferencesResource
Source§fn clone(&self) -> NotificationPreferencesResource
fn clone(&self) -> NotificationPreferencesResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NotificationPreferencesResource
impl !RefUnwindSafe for NotificationPreferencesResource
impl Send for NotificationPreferencesResource
impl Sync for NotificationPreferencesResource
impl Unpin for NotificationPreferencesResource
impl UnsafeUnpin for NotificationPreferencesResource
impl !UnwindSafe for NotificationPreferencesResource
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