Struct slack_chat_api::reminders::Reminders
source · pub struct Reminders {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl Reminders
impl Reminders
sourcepub async fn add(&self) -> Result<RemindersAddSchema>
pub async fn add(&self) -> Result<RemindersAddSchema>
This function performs a POST to the /reminders.add endpoint.
Creates a reminder.
FROM: https://api.slack.com/methods/reminders.add
Parameters:
token: &str– Authentication token. Requires scope:reminders:write.
sourcepub async fn complete(&self) -> Result<DndEndSchema>
pub async fn complete(&self) -> Result<DndEndSchema>
This function performs a POST to the /reminders.complete endpoint.
Marks a reminder as complete.
FROM: https://api.slack.com/methods/reminders.complete
Parameters:
token: &str– Authentication token. Requires scope:reminders:write.
sourcepub async fn delete(&self) -> Result<DndEndSchema>
pub async fn delete(&self) -> Result<DndEndSchema>
This function performs a POST to the /reminders.delete endpoint.
Deletes a reminder.
FROM: https://api.slack.com/methods/reminders.delete
Parameters:
token: &str– Authentication token. Requires scope:reminders:write.
sourcepub async fn info(&self, reminder: &str) -> Result<RemindersAddSchema>
pub async fn info(&self, reminder: &str) -> Result<RemindersAddSchema>
This function performs a GET to the /reminders.info endpoint.
Gets information about a reminder.
FROM: https://api.slack.com/methods/reminders.info
Parameters:
token: &str– Authentication token. Requires scope:reminders:read.reminder: &str– The ID of the reminder.
sourcepub async fn list(&self) -> Result<RemindersListSchema>
pub async fn list(&self) -> Result<RemindersListSchema>
This function performs a GET to the /reminders.list endpoint.
Lists all reminders created by or for a given user.
FROM: https://api.slack.com/methods/reminders.list
Parameters:
token: &str– Authentication token. Requires scope:reminders:read.