pub struct SlackApiMethodRateControlConfig {
pub tier: Option<SlackApiMethodRateTier>,
pub special_rate_limit: Option<SlackApiRateControlSpecialLimit>,
}
Fields§
§tier: Option<SlackApiMethodRateTier>
§special_rate_limit: Option<SlackApiRateControlSpecialLimit>
Implementations§
source§impl 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§
source§impl Clone for SlackApiMethodRateControlConfig
impl Clone for SlackApiMethodRateControlConfig
source§fn clone(&self) -> SlackApiMethodRateControlConfig
fn clone(&self) -> SlackApiMethodRateControlConfig
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 From<SlackApiMethodRateControlConfigInit> for SlackApiMethodRateControlConfig
impl From<SlackApiMethodRateControlConfigInit> for SlackApiMethodRateControlConfig
source§fn from(value: SlackApiMethodRateControlConfigInit) -> Self
fn from(value: SlackApiMethodRateControlConfigInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackApiMethodRateControlConfig
impl PartialEq for SlackApiMethodRateControlConfig
source§fn eq(&self, other: &SlackApiMethodRateControlConfig) -> bool
fn eq(&self, other: &SlackApiMethodRateControlConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more