pub struct ChannelSlowmodeState {
pub rate_limit_per_user: u64,
pub retry_after_ms: u64,
pub next_send_allowed_at: Option<String>,
pub can_bypass: bool,
}Fields§
§rate_limit_per_user: u64§retry_after_ms: u64§next_send_allowed_at: Option<String>§can_bypass: boolTrait Implementations§
Source§impl Clone for ChannelSlowmodeState
impl Clone for ChannelSlowmodeState
Source§fn clone(&self) -> ChannelSlowmodeState
fn clone(&self) -> ChannelSlowmodeState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelSlowmodeState
impl Debug for ChannelSlowmodeState
Source§impl<'de> Deserialize<'de> for ChannelSlowmodeState
impl<'de> Deserialize<'de> for ChannelSlowmodeState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChannelSlowmodeState
impl RefUnwindSafe for ChannelSlowmodeState
impl Send for ChannelSlowmodeState
impl Sync for ChannelSlowmodeState
impl Unpin for ChannelSlowmodeState
impl UnsafeUnpin for ChannelSlowmodeState
impl UnwindSafe for ChannelSlowmodeState
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