Struct Workflows

Source
pub struct Workflows {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

Source§

impl Workflows

Source

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 configured key properties of your outputs array from your workflow_step object.
Source

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 a message property that should contain a human readable error message.
Source

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 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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> ErasedDestructor for T
where T: 'static,