#[non_exhaustive]pub struct CreateMessageNotificationOptions {
pub notification_type: NotificationType,
/* private fields */
}Expand description
Options for the notification behavior when the message is posted.
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.notification_type: NotificationTypeThe notification type for the message.
Implementations§
Source§impl CreateMessageNotificationOptions
impl CreateMessageNotificationOptions
Sourcepub fn set_notification_type<T: Into<NotificationType>>(self, v: T) -> Self
pub fn set_notification_type<T: Into<NotificationType>>(self, v: T) -> Self
Sets the value of notification_type.
§Example
ⓘ
use google_chat_v1::model::create_message_notification_options::NotificationType;
let x0 = CreateMessageNotificationOptions::new().set_notification_type(NotificationType::ForceNotify);
let x1 = CreateMessageNotificationOptions::new().set_notification_type(NotificationType::Silent);Trait Implementations§
Source§impl Clone for CreateMessageNotificationOptions
impl Clone for CreateMessageNotificationOptions
Source§fn clone(&self) -> CreateMessageNotificationOptions
fn clone(&self) -> CreateMessageNotificationOptions
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 Default for CreateMessageNotificationOptions
impl Default for CreateMessageNotificationOptions
Source§fn default() -> CreateMessageNotificationOptions
fn default() -> CreateMessageNotificationOptions
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateMessageNotificationOptions
Auto Trait Implementations§
impl Freeze for CreateMessageNotificationOptions
impl RefUnwindSafe for CreateMessageNotificationOptions
impl Send for CreateMessageNotificationOptions
impl Sync for CreateMessageNotificationOptions
impl Unpin for CreateMessageNotificationOptions
impl UnsafeUnpin for CreateMessageNotificationOptions
impl UnwindSafe for CreateMessageNotificationOptions
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