Struct gapi_grpc::google::cloud::essentialcontacts::v1::essential_contacts_service_client::EssentialContactsServiceClient[][src]

pub struct EssentialContactsServiceClient<T> { /* fields omitted */ }

Manages contacts for important Google Cloud notifications.

Implementations

impl EssentialContactsServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> EssentialContactsServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn create_contact(
    &mut self,
    request: impl IntoRequest<CreateContactRequest>
) -> Result<Response<Contact>, Status>
[src]

Adds a new contact for a resource.

pub async fn update_contact(
    &mut self,
    request: impl IntoRequest<UpdateContactRequest>
) -> Result<Response<Contact>, Status>
[src]

Updates a contact. Note: A contact’s email address cannot be changed.

pub async fn list_contacts(
    &mut self,
    request: impl IntoRequest<ListContactsRequest>
) -> Result<Response<ListContactsResponse>, Status>
[src]

Lists the contacts that have been set on a resource.

pub async fn get_contact(
    &mut self,
    request: impl IntoRequest<GetContactRequest>
) -> Result<Response<Contact>, Status>
[src]

Gets a single contact.

pub async fn delete_contact(
    &mut self,
    request: impl IntoRequest<DeleteContactRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a contact.

pub async fn compute_contacts(
    &mut self,
    request: impl IntoRequest<ComputeContactsRequest>
) -> Result<Response<ComputeContactsResponse>, Status>
[src]

Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

pub async fn send_test_message(
    &mut self,
    request: impl IntoRequest<SendTestMessageRequest>
) -> Result<Response<()>, Status>
[src]

Allows a contact admin to send a test message to contact to verify that it has been configured correctly.

Trait Implementations

impl<T: Clone> Clone for EssentialContactsServiceClient<T>[src]

impl<T> Debug for EssentialContactsServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for EssentialContactsServiceClient<T>

impl<T> Send for EssentialContactsServiceClient<T> where
    T: Send

impl<T> Sync for EssentialContactsServiceClient<T> where
    T: Sync

impl<T> Unpin for EssentialContactsServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for EssentialContactsServiceClient<T>

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]