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
sourceimpl 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
sourceimpl Clone for SlackApiRateControlConfig
impl Clone for SlackApiRateControlConfig
sourcefn clone(&self) -> SlackApiRateControlConfig
fn clone(&self) -> SlackApiRateControlConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SlackApiRateControlConfig
impl Debug for SlackApiRateControlConfig
sourceimpl From<SlackApiRateControlConfigInit> for SlackApiRateControlConfig
impl From<SlackApiRateControlConfigInit> for SlackApiRateControlConfig
sourcefn from(value: SlackApiRateControlConfigInit) -> Self
fn from(value: SlackApiRateControlConfigInit) -> Self
Performs the conversion.
sourceimpl PartialEq<SlackApiRateControlConfig> for SlackApiRateControlConfig
impl PartialEq<SlackApiRateControlConfig> for SlackApiRateControlConfig
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &SlackApiRateControlConfig) -> bool
fn ne(&self, other: &SlackApiRateControlConfig) -> bool
This method tests for !=.
impl StructuralPartialEq for SlackApiRateControlConfig
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more