pub struct SlackApiRateControlSpecialLimit {
pub key: SlackApiRateControlSpecialLimitKey,
pub limit: SlackApiRateControlLimit,
}
Expand description
Some Slack Web API methods have special rating limits (e.g. chat.postMessage allowed up to 1rps per workspace channel)
Fields§
§key: SlackApiRateControlSpecialLimitKey
§limit: SlackApiRateControlLimit
Implementations§
Source§impl SlackApiRateControlSpecialLimit
impl SlackApiRateControlSpecialLimit
pub fn new( key: SlackApiRateControlSpecialLimitKey, limit: SlackApiRateControlLimit, ) -> Self
pub fn key(&mut self, value: SlackApiRateControlSpecialLimitKey) -> &mut Self
pub fn with_key(self, value: SlackApiRateControlSpecialLimitKey) -> Self
pub fn limit(&mut self, value: SlackApiRateControlLimit) -> &mut Self
pub fn with_limit(self, value: SlackApiRateControlLimit) -> Self
Trait Implementations§
Source§impl Clone for SlackApiRateControlSpecialLimit
impl Clone for SlackApiRateControlSpecialLimit
Source§fn clone(&self) -> SlackApiRateControlSpecialLimit
fn clone(&self) -> SlackApiRateControlSpecialLimit
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<SlackApiRateControlSpecialLimitInit> for SlackApiRateControlSpecialLimit
impl From<SlackApiRateControlSpecialLimitInit> for SlackApiRateControlSpecialLimit
Source§fn from(value: SlackApiRateControlSpecialLimitInit) -> Self
fn from(value: SlackApiRateControlSpecialLimitInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackApiRateControlSpecialLimit
impl PartialEq for SlackApiRateControlSpecialLimit
Source§fn eq(&self, other: &SlackApiRateControlSpecialLimit) -> bool
fn eq(&self, other: &SlackApiRateControlSpecialLimit) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for SlackApiRateControlSpecialLimit
impl StructuralPartialEq for SlackApiRateControlSpecialLimit
Auto Trait Implementations§
impl Freeze for SlackApiRateControlSpecialLimit
impl RefUnwindSafe for SlackApiRateControlSpecialLimit
impl Send for SlackApiRateControlSpecialLimit
impl Sync for SlackApiRateControlSpecialLimit
impl Unpin for SlackApiRateControlSpecialLimit
impl UnwindSafe for SlackApiRateControlSpecialLimit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)