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§
source§impl SlackApiRateControlConfig
impl SlackApiRateControlConfig
pub fn new() -> Self
pub fn global_max_rate_limit( &mut self, value: SlackApiRateControlLimit ) -> &mut Self
pub fn reset_global_max_rate_limit(&mut self) -> &mut Self
pub fn mopt_global_max_rate_limit( &mut self, value: Option<SlackApiRateControlLimit> ) -> &mut Self
pub fn with_global_max_rate_limit(self, value: SlackApiRateControlLimit) -> Self
pub fn without_global_max_rate_limit(self) -> Self
pub fn opt_global_max_rate_limit( self, value: Option<SlackApiRateControlLimit> ) -> Self
pub fn team_max_rate_limit( &mut self, value: SlackApiRateControlLimit ) -> &mut Self
pub fn reset_team_max_rate_limit(&mut self) -> &mut Self
pub fn mopt_team_max_rate_limit( &mut self, value: Option<SlackApiRateControlLimit> ) -> &mut Self
pub fn with_team_max_rate_limit(self, value: SlackApiRateControlLimit) -> Self
pub fn without_team_max_rate_limit(self) -> Self
pub fn opt_team_max_rate_limit( self, value: Option<SlackApiRateControlLimit> ) -> Self
pub fn tiers_limits( &mut self, value: HashMap<SlackApiMethodRateTier, SlackApiRateControlLimit> ) -> &mut Self
pub fn with_tiers_limits( self, value: HashMap<SlackApiMethodRateTier, SlackApiRateControlLimit> ) -> Self
pub fn max_delay_timeout(&mut self, value: Duration) -> &mut Self
pub fn reset_max_delay_timeout(&mut self) -> &mut Self
pub fn mopt_max_delay_timeout(&mut self, value: Option<Duration>) -> &mut Self
pub fn with_max_delay_timeout(self, value: Duration) -> Self
pub fn without_max_delay_timeout(self) -> Self
pub fn opt_max_delay_timeout(self, value: Option<Duration>) -> Self
pub fn max_retries(&mut self, value: usize) -> &mut Self
pub fn reset_max_retries(&mut self) -> &mut Self
pub fn mopt_max_retries(&mut self, value: Option<usize>) -> &mut Self
pub fn with_max_retries(self, value: usize) -> Self
pub fn without_max_retries(self) -> Self
pub fn opt_max_retries(self, value: Option<usize>) -> Self
Trait Implementations§
source§impl Clone for SlackApiRateControlConfig
impl Clone for SlackApiRateControlConfig
source§fn clone(&self) -> SlackApiRateControlConfig
fn clone(&self) -> SlackApiRateControlConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SlackApiRateControlConfig
impl Debug for SlackApiRateControlConfig
source§impl From<SlackApiRateControlConfigInit> for SlackApiRateControlConfig
impl From<SlackApiRateControlConfigInit> for SlackApiRateControlConfig
source§fn from(value: SlackApiRateControlConfigInit) -> Self
fn from(value: SlackApiRateControlConfigInit) -> Self
Converts to this type from the input type.
source§impl PartialEq<SlackApiRateControlConfig> for SlackApiRateControlConfig
impl PartialEq<SlackApiRateControlConfig> for SlackApiRateControlConfig
source§fn eq(&self, other: &SlackApiRateControlConfig) -> bool
fn eq(&self, other: &SlackApiRateControlConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.