pub enum UserInteractionReason {
ContextExpiring {
observed_at: SystemTime,
expires_at: SystemTime,
remind_before: Duration,
},
OutboundRateLimitApproaching {
sent_count: usize,
window: Duration,
threshold: usize,
},
}Expand description
Why the SDK suggests asking a WeChat user to interact.
Variants§
ContextExpiring
A stored context is nearing expiry.
OutboundRateLimitApproaching
Proactive outbound sends are close to the bot-wide iLink rate limit.
Trait Implementations§
Source§impl Clone for UserInteractionReason
impl Clone for UserInteractionReason
Source§fn clone(&self) -> UserInteractionReason
fn clone(&self) -> UserInteractionReason
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 UserInteractionReason
impl Debug for UserInteractionReason
Source§impl PartialEq for UserInteractionReason
impl PartialEq for UserInteractionReason
Source§fn eq(&self, other: &UserInteractionReason) -> bool
fn eq(&self, other: &UserInteractionReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UserInteractionReason
impl StructuralPartialEq for UserInteractionReason
Auto Trait Implementations§
impl Freeze for UserInteractionReason
impl RefUnwindSafe for UserInteractionReason
impl Send for UserInteractionReason
impl Sync for UserInteractionReason
impl Unpin for UserInteractionReason
impl UnsafeUnpin for UserInteractionReason
impl UnwindSafe for UserInteractionReason
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