pub struct Workflows {
pub client: Client,
}
Fields§
§client: Client
Implementations§
Source§impl Workflows
impl Workflows
Sourcepub async fn step_completed(
&self,
workflow_step_execute_id: &str,
outputs: &str,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn step_completed( &self, workflow_step_execute_id: &str, outputs: &str, ) -> Result<Response<DndEndSchema>, ClientError>
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 configuredkey
properties of youroutputs
array from yourworkflow_step
object.
Sourcepub async fn step_failed(
&self,
workflow_step_execute_id: &str,
error: &str,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn step_failed( &self, workflow_step_execute_id: &str, error: &str, ) -> Result<Response<DndEndSchema>, ClientError>
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 amessage
property that should contain a human readable error message.
Sourcepub async fn update_step(
&self,
workflow_step_edit_id: &str,
inputs: &str,
outputs: &str,
step_name: &str,
step_image_url: &str,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn update_step( &self, workflow_step_edit_id: &str, inputs: &str, outputs: &str, step_name: &str, step_image_url: &str, ) -> Result<Response<DndEndSchema>, ClientError>
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 withview_submission
payloads used to call back toworkflows.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§
impl Freeze for Workflows
impl !RefUnwindSafe for Workflows
impl Send for Workflows
impl Sync for Workflows
impl Unpin for Workflows
impl !UnwindSafe for Workflows
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