#[non_exhaustive]pub struct SpaceNotificationSetting {
pub name: String,
pub notification_setting: Option<NotificationSetting>,
pub mute_setting: Option<MuteSetting>,
/* private fields */
}Expand description
The notification setting of a user in a space.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The resource name of the space notification setting.
Format: users/{user}/spaces/{space}/spaceNotificationSetting.
notification_setting: Option<NotificationSetting>The notification setting.
mute_setting: Option<MuteSetting>The space notification mute setting.
Implementations§
Source§impl SpaceNotificationSetting
impl SpaceNotificationSetting
Sourcepub fn set_notification_setting<T>(self, v: T) -> Selfwhere
T: Into<NotificationSetting>,
pub fn set_notification_setting<T>(self, v: T) -> Selfwhere
T: Into<NotificationSetting>,
Sets the value of notification_setting.
§Example
ⓘ
use google_chat_v1::model::space_notification_setting::NotificationSetting;
let x0 = SpaceNotificationSetting::new().set_notification_setting(NotificationSetting::All);
let x1 = SpaceNotificationSetting::new().set_notification_setting(NotificationSetting::MainConversations);
let x2 = SpaceNotificationSetting::new().set_notification_setting(NotificationSetting::ForYou);Sourcepub fn set_or_clear_notification_setting<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationSetting>,
pub fn set_or_clear_notification_setting<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationSetting>,
Sets or clears the value of notification_setting.
§Example
ⓘ
use google_chat_v1::model::space_notification_setting::NotificationSetting;
let x0 = SpaceNotificationSetting::new().set_or_clear_notification_setting(Some(NotificationSetting::All));
let x1 = SpaceNotificationSetting::new().set_or_clear_notification_setting(Some(NotificationSetting::MainConversations));
let x2 = SpaceNotificationSetting::new().set_or_clear_notification_setting(Some(NotificationSetting::ForYou));
let x_none = SpaceNotificationSetting::new().set_or_clear_notification_setting(None::<NotificationSetting>);Sourcepub fn set_mute_setting<T>(self, v: T) -> Selfwhere
T: Into<MuteSetting>,
pub fn set_mute_setting<T>(self, v: T) -> Selfwhere
T: Into<MuteSetting>,
Sets the value of mute_setting.
§Example
ⓘ
use google_chat_v1::model::space_notification_setting::MuteSetting;
let x0 = SpaceNotificationSetting::new().set_mute_setting(MuteSetting::Unmuted);
let x1 = SpaceNotificationSetting::new().set_mute_setting(MuteSetting::Muted);Sourcepub fn set_or_clear_mute_setting<T>(self, v: Option<T>) -> Selfwhere
T: Into<MuteSetting>,
pub fn set_or_clear_mute_setting<T>(self, v: Option<T>) -> Selfwhere
T: Into<MuteSetting>,
Sets or clears the value of mute_setting.
§Example
ⓘ
use google_chat_v1::model::space_notification_setting::MuteSetting;
let x0 = SpaceNotificationSetting::new().set_or_clear_mute_setting(Some(MuteSetting::Unmuted));
let x1 = SpaceNotificationSetting::new().set_or_clear_mute_setting(Some(MuteSetting::Muted));
let x_none = SpaceNotificationSetting::new().set_or_clear_mute_setting(None::<MuteSetting>);Trait Implementations§
Source§impl Clone for SpaceNotificationSetting
impl Clone for SpaceNotificationSetting
Source§fn clone(&self) -> SpaceNotificationSetting
fn clone(&self) -> SpaceNotificationSetting
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 moreSource§impl Debug for SpaceNotificationSetting
impl Debug for SpaceNotificationSetting
Source§impl Default for SpaceNotificationSetting
impl Default for SpaceNotificationSetting
Source§fn default() -> SpaceNotificationSetting
fn default() -> SpaceNotificationSetting
Returns the “default value” for a type. Read more
Source§impl Message for SpaceNotificationSetting
impl Message for SpaceNotificationSetting
Source§impl PartialEq for SpaceNotificationSetting
impl PartialEq for SpaceNotificationSetting
impl StructuralPartialEq for SpaceNotificationSetting
Auto Trait Implementations§
impl Freeze for SpaceNotificationSetting
impl RefUnwindSafe for SpaceNotificationSetting
impl Send for SpaceNotificationSetting
impl Sync for SpaceNotificationSetting
impl Unpin for SpaceNotificationSetting
impl UnsafeUnpin for SpaceNotificationSetting
impl UnwindSafe for SpaceNotificationSetting
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