pub struct SlackApiMethodRateControlConfig {
pub tier: Option<SlackApiMethodRateTier>,
pub special_rate_limit: Option<SlackApiRateControlSpecialLimit>,
}Fields
tier: Option<SlackApiMethodRateTier>special_rate_limit: Option<SlackApiRateControlSpecialLimit>Implementations
sourceimpl SlackApiMethodRateControlConfig
impl SlackApiMethodRateControlConfig
pub fn new() -> Self
pub fn tier(&mut self, value: SlackApiMethodRateTier) -> &mut Self
pub fn reset_tier(&mut self) -> &mut Self
pub fn mopt_tier(&mut self, value: Option<SlackApiMethodRateTier>) -> &mut Self
pub fn with_tier(self, value: SlackApiMethodRateTier) -> Self
pub fn without_tier(self) -> Self
pub fn opt_tier(self, value: Option<SlackApiMethodRateTier>) -> Self
pub fn special_rate_limit(
&mut self,
value: SlackApiRateControlSpecialLimit
) -> &mut Self
pub fn reset_special_rate_limit(&mut self) -> &mut Self
pub fn mopt_special_rate_limit(
&mut self,
value: Option<SlackApiRateControlSpecialLimit>
) -> &mut Self
pub fn with_special_rate_limit(
self,
value: SlackApiRateControlSpecialLimit
) -> Self
pub fn without_special_rate_limit(self) -> Self
pub fn opt_special_rate_limit(
self,
value: Option<SlackApiRateControlSpecialLimit>
) -> Self
Trait Implementations
sourceimpl Clone for SlackApiMethodRateControlConfig
impl Clone for SlackApiMethodRateControlConfig
sourcefn clone(&self) -> SlackApiMethodRateControlConfig
fn clone(&self) -> SlackApiMethodRateControlConfig
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 moresourceimpl From<SlackApiMethodRateControlConfigInit> for SlackApiMethodRateControlConfig
impl From<SlackApiMethodRateControlConfigInit> for SlackApiMethodRateControlConfig
sourcefn from(value: SlackApiMethodRateControlConfigInit) -> Self
fn from(value: SlackApiMethodRateControlConfigInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackApiMethodRateControlConfig> for SlackApiMethodRateControlConfig
impl PartialEq<SlackApiMethodRateControlConfig> for SlackApiMethodRateControlConfig
sourcefn eq(&self, other: &SlackApiMethodRateControlConfig) -> bool
fn eq(&self, other: &SlackApiMethodRateControlConfig) -> bool
impl Eq for SlackApiMethodRateControlConfig
impl StructuralEq for SlackApiMethodRateControlConfig
impl StructuralPartialEq for SlackApiMethodRateControlConfig
Auto Trait Implementations
impl RefUnwindSafe for SlackApiMethodRateControlConfig
impl Send for SlackApiMethodRateControlConfig
impl Sync for SlackApiMethodRateControlConfig
impl Unpin for SlackApiMethodRateControlConfig
impl UnwindSafe for SlackApiMethodRateControlConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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