pub struct Workflows {
    pub client: Client,
}

Fields

client: Client

Implementations

This function performs a GET to the /workflows.stepCompleted endpoint.

Indicate that an app’s step in a workflow completed execution.

FROM: https://api.slack.com/methods/workflows.stepCompleted

Parameters:

  • token: &str – Authentication token. Requires scope: workflow.steps:execute.
  • workflow_step_execute_id: &str – Context identifier that maps to the correct workflow step execution.
  • outputs: &str – Key-value object of outputs from your step. Keys of this object reflect the configured key properties of your outputs array from your workflow_step object.

This function performs a GET to the /workflows.stepFailed endpoint.

Indicate that an app’s step in a workflow failed to execute.

FROM: https://api.slack.com/methods/workflows.stepFailed

Parameters:

  • token: &str – Authentication token. Requires scope: workflow.steps:execute.
  • workflow_step_execute_id: &str – Context identifier that maps to the correct workflow step execution.
  • error: &str – A JSON-based object with a message property that should contain a human readable error message.

This function performs a GET to the /workflows.updateStep endpoint.

Update the configuration for a workflow extension step.

FROM: https://api.slack.com/methods/workflows.updateStep

Parameters:

  • token: &str – Authentication token. Requires scope: workflow.steps:execute.
  • workflow_step_edit_id: &str – A context identifier provided with view_submission payloads used to call back to workflows.updateStep.
  • inputs: &str – A JSON key-value map of inputs required from a user during configuration. This is the data your app expects to receive when the workflow step starts. Please note: the embedded variable format is set and replaced by the workflow system. You cannot create custom variables that will be replaced at runtime. Read more about variables in workflow steps here.
  • outputs: &str – An JSON array of output objects used during step execution. This is the data your app agrees to provide when your workflow step was executed.
  • step_name: &str – An optional field that can be used to override the step name that is shown in the Workflow Builder.
  • step_image_url: &str – An optional field that can be used to override app image that is shown in the Workflow Builder.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more