Struct gapi_grpc::google::cloud::essentialcontacts::v1::Contact[][src]

pub struct Contact {
    pub name: String,
    pub email: String,
    pub notification_category_subscriptions: Vec<i32>,
    pub language_tag: String,
    pub validation_state: i32,
    pub validate_time: Option<Timestamp>,
}

A contact that will receive notifications from Google Cloud.

Fields

name: String

The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}

email: String

Required. The email address to send notifications to. This does not need to be a Google account.

notification_category_subscriptions: Vec<i32>

The categories of notifications that the contact will receive communications for.

language_tag: String

The preferred language for notifications, as a ISO 639-1 language code. See Supported languages for a list of supported languages.

validation_state: i32

The validity of the contact. A contact is considered valid if it is the correct recipient for notifications for a particular resource.

validate_time: Option<Timestamp>

The last time the validation_state was updated, either manually or automatically. A contact is considered stale if its validation state was updated more than 1 year ago.

Implementations

impl Contact[src]

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

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

pub fn push_notification_category_subscriptions(
    &mut self,
    value: NotificationCategory
)
[src]

Appends the provided enum value to notification_category_subscriptions.

pub fn validation_state(&self) -> ValidationState[src]

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

pub fn set_validation_state(&mut self, value: ValidationState)[src]

Sets validation_state to the provided enum value.

Trait Implementations

impl Clone for Contact[src]

impl Debug for Contact[src]

impl Default for Contact[src]

impl Message for Contact[src]

impl PartialEq<Contact> for Contact[src]

impl StructuralPartialEq for Contact[src]

Auto Trait Implementations

impl RefUnwindSafe for Contact

impl Send for Contact

impl Sync for Contact

impl Unpin for Contact

impl UnwindSafe for Contact

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]