#[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,
/* private fields */
}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
pub fn new() -> Self
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.
§Example
let x = NotificationChannelDescriptor::new().set_display_name("example");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.
§Example
let x = NotificationChannelDescriptor::new().set_description("example");Sourcepub fn set_labels<T, V>(self, v: T) -> Self
pub fn set_labels<T, V>(self, v: T) -> Self
Sourcepub fn set_supported_tiers<T, V>(self, v: T) -> Self
👎Deprecated
pub fn set_supported_tiers<T, V>(self, v: T) -> Self
Sets the value of supported_tiers.
§Example
use google_cloud_monitoring_v3::model::ServiceTier;
let x = NotificationChannelDescriptor::new().set_supported_tiers([
ServiceTier::Basic,
ServiceTier::Premium,
]);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.
§Example
use api::model::LaunchStage;
let x0 = NotificationChannelDescriptor::new().set_launch_stage(LaunchStage::Unimplemented);
let x1 = NotificationChannelDescriptor::new().set_launch_stage(LaunchStage::Prelaunch);
let x2 = NotificationChannelDescriptor::new().set_launch_stage(LaunchStage::EarlyAccess);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 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 ==.