#[non_exhaustive]pub struct UpdateNotificationChannelRequest {
pub update_mask: Option<FieldMask>,
pub notification_channel: Option<NotificationChannel>,
/* private fields */
}Expand description
The UpdateNotificationChannel request.
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.update_mask: Option<FieldMask>Optional. The fields to update.
notification_channel: Option<NotificationChannel>Required. A description of the changes to be applied to the specified
notification channel. The description must provide a definition for
fields to be updated; the names of these fields should also be
included in the update_mask.
Implementations§
Source§impl UpdateNotificationChannelRequest
impl UpdateNotificationChannelRequest
pub fn new() -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
Sourcepub fn set_notification_channel<T>(self, v: T) -> Selfwhere
T: Into<NotificationChannel>,
pub fn set_notification_channel<T>(self, v: T) -> Selfwhere
T: Into<NotificationChannel>,
Sets the value of notification_channel.
Sourcepub fn set_or_clear_notification_channel<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationChannel>,
pub fn set_or_clear_notification_channel<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationChannel>,
Sets or clears the value of notification_channel.
Trait Implementations§
Source§impl Clone for UpdateNotificationChannelRequest
impl Clone for UpdateNotificationChannelRequest
Source§fn clone(&self) -> UpdateNotificationChannelRequest
fn clone(&self) -> UpdateNotificationChannelRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 UpdateNotificationChannelRequest
impl Default for UpdateNotificationChannelRequest
Source§fn default() -> UpdateNotificationChannelRequest
fn default() -> UpdateNotificationChannelRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateNotificationChannelRequest
impl PartialEq for UpdateNotificationChannelRequest
Source§fn eq(&self, other: &UpdateNotificationChannelRequest) -> bool
fn eq(&self, other: &UpdateNotificationChannelRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateNotificationChannelRequest
Auto Trait Implementations§
impl Freeze for UpdateNotificationChannelRequest
impl RefUnwindSafe for UpdateNotificationChannelRequest
impl Send for UpdateNotificationChannelRequest
impl Sync for UpdateNotificationChannelRequest
impl Unpin for UpdateNotificationChannelRequest
impl UnwindSafe for UpdateNotificationChannelRequest
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