pub struct NotificationChannelDescriptor {
pub name: String,
pub type: String,
pub display_name: String,
pub description: String,
pub labels: Vec<LabelDescriptor>,
pub supported_tiers: Vec<i32>,
pub launch_stage: i32,
}
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§
§name: 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.
type: String
The 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: String
A human-readable name for the notification channel type. This form of the name is suitable for a user interface.
description: 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.
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<i32>
The tiers that support this notification channel; the project service tier must be one of the supported_tiers.
launch_stage: i32
The product launch stage for channels of this type.
Implementations§
source§impl NotificationChannelDescriptor
impl NotificationChannelDescriptor
sourcepub fn supported_tiers(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ServiceTier>>
pub fn supported_tiers( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ServiceTier>>
Returns an iterator which yields the valid enum values contained in supported_tiers
.
sourcepub fn push_supported_tiers(&mut self, value: ServiceTier)
pub fn push_supported_tiers(&mut self, value: ServiceTier)
Appends the provided enum value to supported_tiers
.
sourcepub fn launch_stage(&self) -> LaunchStage
pub fn launch_stage(&self) -> LaunchStage
Returns the enum value of launch_stage
, or the default if the field is set to an invalid enum value.
sourcepub fn set_launch_stage(&mut self, value: LaunchStage)
pub fn set_launch_stage(&mut self, value: LaunchStage)
Sets launch_stage
to the provided enum value.
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 Message for NotificationChannelDescriptor
impl Message for NotificationChannelDescriptor
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.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 ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request