slack_morphism/ratectl/
special_limit.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::ratectl::SlackApiRateControlLimit;
use rsb_derive::Builder;
use rvstruct::*;

/**
 * Some Slack Web API methods have special rating limits (e.g. chat.postMessage allowed up to 1rps per workspace
 * channel)
 */
#[derive(Debug, PartialEq, Eq, Clone, Builder)]
pub struct SlackApiRateControlSpecialLimit {
    pub key: SlackApiRateControlSpecialLimitKey,
    pub limit: SlackApiRateControlLimit,
}

#[derive(Debug, Eq, PartialEq, Hash, Clone, ValueStruct)]
pub struct SlackApiRateControlSpecialLimitKey(pub String);