pub struct NotificationChannelDescriptor {
pub description: Option<String>,
pub display_name: Option<String>,
pub labels: Option<Vec<LabelDescriptor>>,
pub launch_stage: Option<String>,
pub name: Option<String>,
pub supported_tiers: Option<Vec<String>>,
pub type_: Option<String>,
}
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.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§description: Option<String>
A 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.
display_name: Option<String>
A human-readable name for the notification channel type. This form of the name is suitable for a user interface.
labels: Option<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.
launch_stage: Option<String>
The product launch stage for channels of this type.
name: Option<String>
The 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.
supported_tiers: Option<Vec<String>>
The tiers that support this notification channel; the project service tier must be one of the supported_tiers.
type_: Option<String>
The type of notification channel, such as “email” and “sms”. To view the full list of channels, see Channel descriptors (https://cloud.google.com/monitoring/alerts/using-channels-api#ncd). Notification channel types are globally unique.
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 NotificationChannelDescriptor
impl<'de> Deserialize<'de> for NotificationChannelDescriptor
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>,
impl ResponseResult for NotificationChannelDescriptor
Auto Trait Implementations§
impl Freeze for NotificationChannelDescriptor
impl RefUnwindSafe for NotificationChannelDescriptor
impl Send for NotificationChannelDescriptor
impl Sync for NotificationChannelDescriptor
impl Unpin for NotificationChannelDescriptor
impl UnwindSafe for NotificationChannelDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more