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
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiMethodRateControlConfig from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn tier(&mut self, value: SlackApiMethodRateTier) -> &mut Self
pub fn tier(&mut self, value: SlackApiMethodRateTier) -> &mut Self
Sets tier to Some(value).
Sourcepub fn reset_tier(&mut self) -> &mut Self
pub fn reset_tier(&mut self) -> &mut Self
Sets tier to None.
Sourcepub fn mopt_tier(&mut self, value: Option<SlackApiMethodRateTier>) -> &mut Self
pub fn mopt_tier(&mut self, value: Option<SlackApiMethodRateTier>) -> &mut Self
Sets tier to the given Option.
Sourcepub fn with_tier(self, value: SlackApiMethodRateTier) -> Self
pub fn with_tier(self, value: SlackApiMethodRateTier) -> Self
Returns self with tier set to Some(value).
Sourcepub fn without_tier(self) -> Self
pub fn without_tier(self) -> Self
Returns self with tier set to None.
Sourcepub fn opt_tier(self, value: Option<SlackApiMethodRateTier>) -> Self
pub fn opt_tier(self, value: Option<SlackApiMethodRateTier>) -> Self
Returns self with tier set to the given Option.
Sourcepub fn special_rate_limit(
&mut self,
value: SlackApiRateControlSpecialLimit,
) -> &mut Self
pub fn special_rate_limit( &mut self, value: SlackApiRateControlSpecialLimit, ) -> &mut Self
Sets special_rate_limit to Some(value).
Sourcepub fn reset_special_rate_limit(&mut self) -> &mut Self
pub fn reset_special_rate_limit(&mut self) -> &mut Self
Sets special_rate_limit to None.
Sourcepub fn mopt_special_rate_limit(
&mut self,
value: Option<SlackApiRateControlSpecialLimit>,
) -> &mut Self
pub fn mopt_special_rate_limit( &mut self, value: Option<SlackApiRateControlSpecialLimit>, ) -> &mut Self
Sets special_rate_limit to the given Option.
Sourcepub fn with_special_rate_limit(
self,
value: SlackApiRateControlSpecialLimit,
) -> Self
pub fn with_special_rate_limit( self, value: SlackApiRateControlSpecialLimit, ) -> Self
Returns self with special_rate_limit set to Some(value).
Sourcepub fn without_special_rate_limit(self) -> Self
pub fn without_special_rate_limit(self) -> Self
Returns self with special_rate_limit set to None.
Sourcepub fn opt_special_rate_limit(
self,
value: Option<SlackApiRateControlSpecialLimit>,
) -> Self
pub fn opt_special_rate_limit( self, value: Option<SlackApiRateControlSpecialLimit>, ) -> Self
Returns self with special_rate_limit set to the given Option.
Trait Implementations§
impl Eq for SlackApiMethodRateControlConfig
Source§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.
impl StructuralPartialEq for SlackApiMethodRateControlConfig
Auto Trait Implementations§
impl Freeze for SlackApiMethodRateControlConfig
impl RefUnwindSafe for SlackApiMethodRateControlConfig
impl Send for SlackApiMethodRateControlConfig
impl Sync for SlackApiMethodRateControlConfig
impl Unpin for SlackApiMethodRateControlConfig
impl UnsafeUnpin 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