Struct gapi_grpc::google::monitoring::v3::NotificationChannelDescriptor[][src]

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,
}

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

impl NotificationChannelDescriptor[src]

pub fn supported_tiers(
    &self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ServiceTier>>
[src]

Returns an iterator which yields the valid enum values contained in supported_tiers.

pub fn push_supported_tiers(&mut self, value: ServiceTier)[src]

Appends the provided enum value to supported_tiers.

pub fn launch_stage(&self) -> LaunchStage[src]

Returns the enum value of launch_stage, or the default if the field is set to an invalid enum value.

pub fn set_launch_stage(&mut self, value: LaunchStage)[src]

Sets launch_stage to the provided enum value.

Trait Implementations

impl Clone for NotificationChannelDescriptor[src]

impl Debug for NotificationChannelDescriptor[src]

impl Default for NotificationChannelDescriptor[src]

impl Message for NotificationChannelDescriptor[src]

impl PartialEq<NotificationChannelDescriptor> for NotificationChannelDescriptor[src]

impl StructuralPartialEq for NotificationChannelDescriptor[src]

Auto Trait Implementations

impl RefUnwindSafe for NotificationChannelDescriptor

impl Send for NotificationChannelDescriptor

impl Sync for NotificationChannelDescriptor

impl Unpin for NotificationChannelDescriptor

impl UnwindSafe for NotificationChannelDescriptor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]