#[non_exhaustive]pub struct NotificationChannelDescriptor {
    pub name: String,
    pub type: String,
    pub display_name: String,
    pub description: String,
    pub labels: Vec<LabelDescriptor>,
    pub supported_tiers: Vec<ServiceTier>,
    pub launch_stage: LaunchStage,
}Expand description
A description of a notification channel. The descriptor includes the properties of the channel and the set of labels or fields that must be specified to configure channels of a given type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe full REST resource name for this descriptor. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]In the above, [TYPE] is the value of the type field.
type: StringThe type of notification channel, such as “email” and “sms”. To view the full list of channels, see Channel descriptors. Notification channel types are globally unique.
display_name: StringA human-readable name for the notification channel type. This form of the name is suitable for a user interface.
description: StringA human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation.
labels: Vec<LabelDescriptor>The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.
supported_tiers: Vec<ServiceTier>The tiers that support this notification channel; the project service tier must be one of the supported_tiers.
launch_stage: LaunchStageThe product launch stage for channels of this type.
Implementations§
Source§impl NotificationChannelDescriptor
 
impl NotificationChannelDescriptor
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
 
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
 
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
 
pub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
Sets the value of launch_stage.
Sourcepub fn set_labels<T, V>(self, v: T) -> Self
 
pub fn set_labels<T, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_supported_tiers<T, V>(self, v: T) -> Self
 
pub fn set_supported_tiers<T, V>(self, v: T) -> Self
Sets the value of supported_tiers.
Trait Implementations§
Source§impl Clone for NotificationChannelDescriptor
 
impl Clone for NotificationChannelDescriptor
Source§fn clone(&self) -> NotificationChannelDescriptor
 
fn clone(&self) -> NotificationChannelDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for NotificationChannelDescriptor
 
impl Default for NotificationChannelDescriptor
Source§fn default() -> NotificationChannelDescriptor
 
fn default() -> NotificationChannelDescriptor
Source§impl<'de> Deserialize<'de> for NotificationChannelDescriptorwhere
    NotificationChannelDescriptor: Default,
 
impl<'de> Deserialize<'de> for NotificationChannelDescriptorwhere
    NotificationChannelDescriptor: Default,
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>,
Source§impl PartialEq for NotificationChannelDescriptor
 
impl PartialEq for NotificationChannelDescriptor
Source§fn eq(&self, other: &NotificationChannelDescriptor) -> bool
 
fn eq(&self, other: &NotificationChannelDescriptor) -> bool
self and other values to be equal, and is used by ==.