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

pub struct SendTestMessageRequest {
    pub contacts: Vec<String>,
    pub resource: String,
    pub notification_category: i32,
}

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

impl SendTestMessageRequest[src]

pub fn notification_category(&self) -> NotificationCategory[src]

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

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

Sets notification_category to the provided enum value.

Trait Implementations

impl Clone for SendTestMessageRequest[src]

impl Debug for SendTestMessageRequest[src]

impl Default for SendTestMessageRequest[src]

impl Message for SendTestMessageRequest[src]

impl PartialEq<SendTestMessageRequest> for SendTestMessageRequest[src]

impl StructuralPartialEq for SendTestMessageRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for SendTestMessageRequest

impl Send for SendTestMessageRequest

impl Sync for SendTestMessageRequest

impl Unpin for SendTestMessageRequest

impl UnwindSafe for SendTestMessageRequest

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]