#[non_exhaustive]pub struct CreateNotificationChannelRequest {
pub name: String,
pub notification_channel: Option<NotificationChannel>,
/* private fields */
}Expand description
The CreateNotificationChannel 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.name: StringRequired. The project on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]This names the container into which the channel will be
written, this does not name the newly created channel. The resulting
channel’s name will have a normalized version of this field as a prefix,
but will add /notificationChannels/[CHANNEL_ID] to identify the channel.
notification_channel: Option<NotificationChannel>Required. The definition of the NotificationChannel to create.
Implementations§
Source§impl CreateNotificationChannelRequest
impl CreateNotificationChannelRequest
pub fn new() -> Self
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 CreateNotificationChannelRequest
impl Clone for CreateNotificationChannelRequest
Source§fn clone(&self) -> CreateNotificationChannelRequest
fn clone(&self) -> CreateNotificationChannelRequest
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 CreateNotificationChannelRequest
impl Default for CreateNotificationChannelRequest
Source§fn default() -> CreateNotificationChannelRequest
fn default() -> CreateNotificationChannelRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateNotificationChannelRequest
impl PartialEq for CreateNotificationChannelRequest
Source§fn eq(&self, other: &CreateNotificationChannelRequest) -> bool
fn eq(&self, other: &CreateNotificationChannelRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateNotificationChannelRequest
Auto Trait Implementations§
impl Freeze for CreateNotificationChannelRequest
impl RefUnwindSafe for CreateNotificationChannelRequest
impl Send for CreateNotificationChannelRequest
impl Sync for CreateNotificationChannelRequest
impl Unpin for CreateNotificationChannelRequest
impl UnwindSafe for CreateNotificationChannelRequest
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