Struct slack_morphism::prelude::SlackApiRateControlConfig
source · [−]pub struct SlackApiRateControlConfig {
pub global_max_rate_limit: Option<SlackApiRateControlLimit>,
pub team_max_rate_limit: Option<SlackApiRateControlLimit>,
pub tiers_limits: HashMap<SlackApiMethodRateTier, SlackApiRateControlLimit>,
pub max_delay_timeout: Option<Duration>,
pub max_retries: Option<usize>,
}
Fields
global_max_rate_limit: Option<SlackApiRateControlLimit>
team_max_rate_limit: Option<SlackApiRateControlLimit>
tiers_limits: HashMap<SlackApiMethodRateTier, SlackApiRateControlLimit>
max_delay_timeout: Option<Duration>
max_retries: Option<usize>
Implementations
pub fn mopt_global_max_rate_limit(
&mut self,
value: Option<SlackApiRateControlLimit>
) -> &mut Self
pub fn mopt_team_max_rate_limit(
&mut self,
value: Option<SlackApiRateControlLimit>
) -> &mut Self
pub fn tiers_limits(
&mut self,
value: HashMap<SlackApiMethodRateTier, SlackApiRateControlLimit>
) -> &mut Self
pub fn with_tiers_limits(
self,
value: HashMap<SlackApiMethodRateTier, SlackApiRateControlLimit>
) -> Self
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SlackApiRateControlConfig
impl Send for SlackApiRateControlConfig
impl Sync for SlackApiRateControlConfig
impl Unpin for SlackApiRateControlConfig
impl UnwindSafe for SlackApiRateControlConfig
Blanket Implementations
Mutably borrows from an owned value. Read more