Struct google_api_proto::google::cloud::essentialcontacts::v1::Contact
source · 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>,
}
Expand description
A contact that will receive notifications from Google Cloud.
Fields§
§name: String
Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}
email: String
Required. The email address to send notifications to. The email address does not need to be a Google Account.
notification_category_subscriptions: Vec<i32>
Required. The categories of notifications that the contact will receive communications for.
language_tag: String
Required. 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§
source§impl Contact
impl Contact
sourcepub fn notification_category_subscriptions(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<NotificationCategory>>
pub fn notification_category_subscriptions( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<NotificationCategory>>
Returns an iterator which yields the valid enum values contained in notification_category_subscriptions
.
sourcepub fn push_notification_category_subscriptions(
&mut self,
value: NotificationCategory,
)
pub fn push_notification_category_subscriptions( &mut self, value: NotificationCategory, )
Appends the provided enum value to notification_category_subscriptions
.
sourcepub fn validation_state(&self) -> ValidationState
pub fn validation_state(&self) -> ValidationState
Returns the enum value of validation_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_validation_state(&mut self, value: ValidationState)
pub fn set_validation_state(&mut self, value: ValidationState)
Sets validation_state
to the provided enum value.
Trait Implementations§
source§impl Message for Contact
impl Message for Contact
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 Contact
impl PartialEq for Contact
impl StructuralPartialEq for Contact
Auto Trait Implementations§
impl Freeze for Contact
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin for Contact
impl UnwindSafe for Contact
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