pub trait AsyncIntegrationsService {
    // Required methods
    fn generate_slack_webhook_link(
        &self,
        auth_: BearerToken,
        workspace: Option<WorkspaceRid>,
        is_gov_slack: Option<bool>,
    ) -> impl Future<Output = Result<GenerateSlackWebhookResponse, Error>> + Send;
    fn create_slack_webhook(
        &self,
        auth_: BearerToken,
        code: String,
        state: String,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn create_integration(
        &self,
        auth_: BearerToken,
        create_integration_request: CreateIntegrationRequest,
    ) -> impl Future<Output = Result<Integration, Error>> + Send;
    fn delete_integration(
        &self,
        auth_: BearerToken,
        integration_rid: IntegrationRid,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn update_integration_metadata(
        &self,
        auth_: BearerToken,
        integration_rid: IntegrationRid,
        request: UpdateIntegrationRequest,
    ) -> impl Future<Output = Result<Integration, Error>> + Send;
    fn get_integration(
        &self,
        auth_: BearerToken,
        integration_rid: IntegrationRid,
    ) -> impl Future<Output = Result<Integration, Error>> + Send;
    fn list_integrations(
        &self,
        auth_: BearerToken,
        workspaces: BTreeSet<WorkspaceRid>,
    ) -> impl Future<Output = Result<Vec<Integration>, Error>> + Send;
    fn send_message(
        &self,
        auth_: BearerToken,
        request: SendMessageRequest,
    ) -> impl Future<Output = Result<(), Error>> + Send;
}Expand description
Service for managing integrations with external services.
Required Methods§
Sourcefn generate_slack_webhook_link(
    &self,
    auth_: BearerToken,
    workspace: Option<WorkspaceRid>,
    is_gov_slack: Option<bool>,
) -> impl Future<Output = Result<GenerateSlackWebhookResponse, Error>> + Send
 
fn generate_slack_webhook_link( &self, auth_: BearerToken, workspace: Option<WorkspaceRid>, is_gov_slack: Option<bool>, ) -> impl Future<Output = Result<GenerateSlackWebhookResponse, Error>> + Send
Generates link to request permissions for Slack bot to join workspaces and use a webhook.
Sourcefn create_slack_webhook(
    &self,
    auth_: BearerToken,
    code: String,
    state: String,
) -> impl Future<Output = Result<(), Error>> + Send
 
fn create_slack_webhook( &self, auth_: BearerToken, code: String, state: String, ) -> impl Future<Output = Result<(), Error>> + Send
Creates a new Slack integration. Called internally after Slack authorization.
Sourcefn create_integration(
    &self,
    auth_: BearerToken,
    create_integration_request: CreateIntegrationRequest,
) -> impl Future<Output = Result<Integration, Error>> + Send
 
fn create_integration( &self, auth_: BearerToken, create_integration_request: CreateIntegrationRequest, ) -> impl Future<Output = Result<Integration, Error>> + Send
Creates a new integration.
Sourcefn delete_integration(
    &self,
    auth_: BearerToken,
    integration_rid: IntegrationRid,
) -> impl Future<Output = Result<(), Error>> + Send
 
fn delete_integration( &self, auth_: BearerToken, integration_rid: IntegrationRid, ) -> impl Future<Output = Result<(), Error>> + Send
Deletes an integration by archiving.
Sourcefn update_integration_metadata(
    &self,
    auth_: BearerToken,
    integration_rid: IntegrationRid,
    request: UpdateIntegrationRequest,
) -> impl Future<Output = Result<Integration, Error>> + Send
 
fn update_integration_metadata( &self, auth_: BearerToken, integration_rid: IntegrationRid, request: UpdateIntegrationRequest, ) -> impl Future<Output = Result<Integration, Error>> + Send
Updates the metadata of an integration.
Sourcefn get_integration(
    &self,
    auth_: BearerToken,
    integration_rid: IntegrationRid,
) -> impl Future<Output = Result<Integration, Error>> + Send
 
fn get_integration( &self, auth_: BearerToken, integration_rid: IntegrationRid, ) -> impl Future<Output = Result<Integration, Error>> + Send
Retrieves an integration with the specified integration RID.
Sourcefn list_integrations(
    &self,
    auth_: BearerToken,
    workspaces: BTreeSet<WorkspaceRid>,
) -> impl Future<Output = Result<Vec<Integration>, Error>> + Send
 
fn list_integrations( &self, auth_: BearerToken, workspaces: BTreeSet<WorkspaceRid>, ) -> impl Future<Output = Result<Vec<Integration>, Error>> + Send
Lists all integrations. Archived integrations are not included.
Sourcefn send_message(
    &self,
    auth_: BearerToken,
    request: SendMessageRequest,
) -> impl Future<Output = Result<(), Error>> + Send
 
fn send_message( &self, auth_: BearerToken, request: SendMessageRequest, ) -> impl Future<Output = Result<(), Error>> + Send
Sends a string message to the specified integration from a checklist execution.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.