pub enum StateKeyStrategy {
PerUserPerChat,
PerUser,
PerChat,
}Expand description
How the FSM key is composed from an incoming message.
Variants§
PerUserPerChat
Track state per user per chat (recommended for most bots). Default.
PerUser
Track state per user across all chats (global user session).
PerChat
Track state per chat, regardless of sender (e.g. group games).
Trait Implementations§
Source§impl Clone for StateKeyStrategy
impl Clone for StateKeyStrategy
Source§fn clone(&self) -> StateKeyStrategy
fn clone(&self) -> StateKeyStrategy
Returns a duplicate 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 Debug for StateKeyStrategy
impl Debug for StateKeyStrategy
Source§impl Default for StateKeyStrategy
impl Default for StateKeyStrategy
Source§fn default() -> StateKeyStrategy
fn default() -> StateKeyStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for StateKeyStrategy
impl PartialEq for StateKeyStrategy
impl Copy for StateKeyStrategy
impl Eq for StateKeyStrategy
impl StructuralPartialEq for StateKeyStrategy
Auto Trait Implementations§
impl Freeze for StateKeyStrategy
impl RefUnwindSafe for StateKeyStrategy
impl Send for StateKeyStrategy
impl Sync for StateKeyStrategy
impl Unpin for StateKeyStrategy
impl UnsafeUnpin for StateKeyStrategy
impl UnwindSafe for StateKeyStrategy
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