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

source

pub fn new() -> Self

source

pub fn global_max_rate_limit( &mut self, value: SlackApiRateControlLimit ) -> &mut Self

source

pub fn reset_global_max_rate_limit(&mut self) -> &mut Self

source

pub fn mopt_global_max_rate_limit( &mut self, value: Option<SlackApiRateControlLimit> ) -> &mut Self

source

pub fn with_global_max_rate_limit(self, value: SlackApiRateControlLimit) -> Self

source

pub fn without_global_max_rate_limit(self) -> Self

source

pub fn opt_global_max_rate_limit( self, value: Option<SlackApiRateControlLimit> ) -> Self

source

pub fn team_max_rate_limit( &mut self, value: SlackApiRateControlLimit ) -> &mut Self

source

pub fn reset_team_max_rate_limit(&mut self) -> &mut Self

source

pub fn mopt_team_max_rate_limit( &mut self, value: Option<SlackApiRateControlLimit> ) -> &mut Self

source

pub fn with_team_max_rate_limit(self, value: SlackApiRateControlLimit) -> Self

source

pub fn without_team_max_rate_limit(self) -> Self

source

pub fn opt_team_max_rate_limit( self, value: Option<SlackApiRateControlLimit> ) -> Self

source

pub fn tiers_limits( &mut self, value: HashMap<SlackApiMethodRateTier, SlackApiRateControlLimit> ) -> &mut Self

source

pub fn with_tiers_limits( self, value: HashMap<SlackApiMethodRateTier, SlackApiRateControlLimit> ) -> Self

source

pub fn max_delay_timeout(&mut self, value: Duration) -> &mut Self

source

pub fn reset_max_delay_timeout(&mut self) -> &mut Self

source

pub fn mopt_max_delay_timeout(&mut self, value: Option<Duration>) -> &mut Self

source

pub fn with_max_delay_timeout(self, value: Duration) -> Self

source

pub fn without_max_delay_timeout(self) -> Self

source

pub fn opt_max_delay_timeout(self, value: Option<Duration>) -> Self

source

pub fn max_retries(&mut self, value: usize) -> &mut Self

source

pub fn reset_max_retries(&mut self) -> &mut Self

source

pub fn mopt_max_retries(&mut self, value: Option<usize>) -> &mut Self

source

pub fn with_max_retries(self, value: usize) -> Self

source

pub fn without_max_retries(self) -> Self

source

pub fn opt_max_retries(self, value: Option<usize>) -> Self

Trait Implementations§

source§

impl Clone for SlackApiRateControlConfig

source§

fn clone(&self) -> SlackApiRateControlConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SlackApiRateControlConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<SlackApiRateControlConfigInit> for SlackApiRateControlConfig

source§

fn from(value: SlackApiRateControlConfigInit) -> Self

Converts to this type from the input type.
source§

impl PartialEq for SlackApiRateControlConfig

source§

fn eq(&self, other: &SlackApiRateControlConfig) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for SlackApiRateControlConfig

source§

impl StructuralEq for SlackApiRateControlConfig

source§

impl StructuralPartialEq for SlackApiRateControlConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more