pub struct IntegrationsServiceAsyncClient<T>(/* private fields */);
Expand description
Service for managing integrations with external services.
Implementations§
Source§impl<T> IntegrationsServiceAsyncClient<T>where
T: AsyncClient,
impl<T> IntegrationsServiceAsyncClient<T>where
T: AsyncClient,
Sourcepub async fn generate_slack_webhook_link(
&self,
auth_: &BearerToken,
workspace: Option<&WorkspaceRid>,
is_gov_slack: Option<bool>,
) -> Result<GenerateSlackWebhookResponse, Error>
pub async fn generate_slack_webhook_link( &self, auth_: &BearerToken, workspace: Option<&WorkspaceRid>, is_gov_slack: Option<bool>, ) -> Result<GenerateSlackWebhookResponse, Error>
Generates link to request permissions for Slack bot to join workspaces and use a webhook.
Sourcepub async fn create_slack_webhook(
&self,
auth_: &BearerToken,
code: &str,
state: &str,
) -> Result<(), Error>
pub async fn create_slack_webhook( &self, auth_: &BearerToken, code: &str, state: &str, ) -> Result<(), Error>
Creates a new Slack integration. Called internally after Slack authorization.
Sourcepub async fn create_integration(
&self,
auth_: &BearerToken,
create_integration_request: &CreateIntegrationRequest,
) -> Result<Integration, Error>
pub async fn create_integration( &self, auth_: &BearerToken, create_integration_request: &CreateIntegrationRequest, ) -> Result<Integration, Error>
Creates a new integration.
Sourcepub async fn delete_integration(
&self,
auth_: &BearerToken,
integration_rid: &IntegrationRid,
) -> Result<(), Error>
pub async fn delete_integration( &self, auth_: &BearerToken, integration_rid: &IntegrationRid, ) -> Result<(), Error>
Deletes an integration by archiving.
Sourcepub async fn update_integration_metadata(
&self,
auth_: &BearerToken,
integration_rid: &IntegrationRid,
request: &UpdateIntegrationRequest,
) -> Result<Integration, Error>
pub async fn update_integration_metadata( &self, auth_: &BearerToken, integration_rid: &IntegrationRid, request: &UpdateIntegrationRequest, ) -> Result<Integration, Error>
Updates the metadata of an integration.
Sourcepub async fn get_integration(
&self,
auth_: &BearerToken,
integration_rid: &IntegrationRid,
) -> Result<Integration, Error>
pub async fn get_integration( &self, auth_: &BearerToken, integration_rid: &IntegrationRid, ) -> Result<Integration, Error>
Retrieves an integration with the specified integration RID.
Sourcepub async fn list_integrations(
&self,
auth_: &BearerToken,
workspaces: &BTreeSet<WorkspaceRid>,
) -> Result<Vec<Integration>, Error>
pub async fn list_integrations( &self, auth_: &BearerToken, workspaces: &BTreeSet<WorkspaceRid>, ) -> Result<Vec<Integration>, Error>
Lists all integrations. Archived integrations are not included.
Sourcepub async fn send_message(
&self,
auth_: &BearerToken,
request: &SendMessageRequest,
) -> Result<(), Error>
pub async fn send_message( &self, auth_: &BearerToken, request: &SendMessageRequest, ) -> Result<(), Error>
Sends a string message to the specified integration from a checklist execution.
Trait Implementations§
Source§impl<T> AsyncService<T> for IntegrationsServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for IntegrationsServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for IntegrationsServiceAsyncClient<T>
impl<T: Clone> Clone for IntegrationsServiceAsyncClient<T>
Source§fn clone(&self) -> IntegrationsServiceAsyncClient<T>
fn clone(&self) -> IntegrationsServiceAsyncClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for IntegrationsServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for IntegrationsServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for IntegrationsServiceAsyncClient<T>where
T: Send,
impl<T> Sync for IntegrationsServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for IntegrationsServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for IntegrationsServiceAsyncClient<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Wrap the input message
T
in a tonic::Request