pub struct WechatRateLimitOptions {
pub retry_after: Duration,
pub retry_attempts: usize,
pub interaction_window: Duration,
pub interaction_threshold: usize,
pub context_ttl: Duration,
pub context_remind_before: Duration,
}Expand description
Rate-limit and context-refresh policy for iLink requests.
Fields§
§retry_after: DurationDelay used before retrying ret=-2 / errcode=-2.
retry_attempts: usizeNumber of retries after the initial rate-limited attempt.
interaction_window: DurationRolling account window used to request proactive user interaction.
interaction_threshold: usizeEmit interaction event at this send count.
context_ttl: DurationExpected context lifetime after a user WeChat message.
context_remind_before: DurationEmit context-expiring interaction event this long before expiry.
Trait Implementations§
Source§impl Clone for WechatRateLimitOptions
impl Clone for WechatRateLimitOptions
Source§fn clone(&self) -> WechatRateLimitOptions
fn clone(&self) -> WechatRateLimitOptions
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 WechatRateLimitOptions
impl Debug for WechatRateLimitOptions
Auto Trait Implementations§
impl Freeze for WechatRateLimitOptions
impl RefUnwindSafe for WechatRateLimitOptions
impl Send for WechatRateLimitOptions
impl Sync for WechatRateLimitOptions
impl Unpin for WechatRateLimitOptions
impl UnsafeUnpin for WechatRateLimitOptions
impl UnwindSafe for WechatRateLimitOptions
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