Struct google_api_proto::google::cloud::essentialcontacts::v1::SendTestMessageRequest
source · pub struct SendTestMessageRequest {
pub contacts: Vec<String>,
pub resource: String,
pub notification_category: i32,
}
Expand description
Request message for the SendTestMessage method.
Fields§
§contacts: Vec<String>
Required. The list of names of the contacts to send a test message to. Format: organizations/{organization_id}/contacts/{contact_id}, folders/{folder_id}/contacts/{contact_id} or projects/{project_id}/contacts/{contact_id}
resource: String
Required. The name of the resource to send the test message for. All contacts must either be set directly on this resource or inherited from another resource that is an ancestor of this one. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}
notification_category: i32
Required. The notification category to send the test message for. All contacts must be subscribed to this category.
Implementations§
source§impl SendTestMessageRequest
impl SendTestMessageRequest
sourcepub fn notification_category(&self) -> NotificationCategory
pub fn notification_category(&self) -> NotificationCategory
Returns the enum value of notification_category
, or the default if the field is set to an invalid enum value.
sourcepub fn set_notification_category(&mut self, value: NotificationCategory)
pub fn set_notification_category(&mut self, value: NotificationCategory)
Sets notification_category
to the provided enum value.
Trait Implementations§
source§impl Clone for SendTestMessageRequest
impl Clone for SendTestMessageRequest
source§fn clone(&self) -> SendTestMessageRequest
fn clone(&self) -> SendTestMessageRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SendTestMessageRequest
impl Debug for SendTestMessageRequest
source§impl Default for SendTestMessageRequest
impl Default for SendTestMessageRequest
source§impl Message for SendTestMessageRequest
impl Message for SendTestMessageRequest
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 SendTestMessageRequest
impl PartialEq for SendTestMessageRequest
source§fn eq(&self, other: &SendTestMessageRequest) -> bool
fn eq(&self, other: &SendTestMessageRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SendTestMessageRequest
Auto Trait Implementations§
impl Freeze for SendTestMessageRequest
impl RefUnwindSafe for SendTestMessageRequest
impl Send for SendTestMessageRequest
impl Sync for SendTestMessageRequest
impl Unpin for SendTestMessageRequest
impl UnwindSafe for SendTestMessageRequest
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