#[non_exhaustive]pub struct CreateNotificationChannelRequest {
pub name: String,
pub notification_channel: Option<NotificationChannel>,
}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
Sourcepub fn set_notification_channel<T: Into<Option<NotificationChannel>>>(
self,
v: T,
) -> Self
pub fn set_notification_channel<T: Into<Option<NotificationChannel>>>( self, v: T, ) -> Self
Sets 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 copy 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<'de> Deserialize<'de> for CreateNotificationChannelRequest
impl<'de> Deserialize<'de> for CreateNotificationChannelRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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