pub struct Views {
    pub client: Client,
}

Fields

client: Client

Implementations

This function performs a GET to the /views.open endpoint.

Open a view for a user.

FROM: https://api.slack.com/methods/views.open

Parameters:

  • token: &str – Authentication token. Requires scope: none.
  • trigger_id: &str – Exchange a trigger to post to the user.
  • view: &str – A view payload. This must be a JSON-encoded string.

This function performs a GET to the /views.publish endpoint.

Publish a static view for a User.

FROM: https://api.slack.com/methods/views.publish

Parameters:

  • token: &str – Authentication token. Requires scope: none.
  • user_id: &strid of the user you want publish a view to.
  • view: &str – A view payload. This must be a JSON-encoded string.
  • hash: &str – A string that represents view state to protect against possible race conditions.

This function performs a GET to the /views.push endpoint.

Push a view onto the stack of a root view.

FROM: https://api.slack.com/methods/views.push

Parameters:

  • token: &str – Authentication token. Requires scope: none.
  • trigger_id: &str – Exchange a trigger to post to the user.
  • view: &str – A view payload. This must be a JSON-encoded string.

This function performs a GET to the /views.update endpoint.

Update an existing view.

FROM: https://api.slack.com/methods/views.update

Parameters:

  • token: &str – Authentication token. Requires scope: none.
  • view_id: &str – A unique identifier of the view to be updated. Either view_id or external_id is required.
  • external_id: &str – A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either view_id or external_id is required.
  • view: &str – A view object. This must be a JSON-encoded string.
  • hash: &str – A string that represents view state to protect against possible race conditions.

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