1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//! Internal type aliases used across the extension crate.
//!
//! These correspond to the Python `telegram.ext._utils.types` module.
//! They are library-internal and not part of the public API stability guarantee.
use ;
use Value;
use HashMap;
use Future;
use Pin;
use Arc;
// ---------------------------------------------------------------------------
// Conversation types
// ---------------------------------------------------------------------------
/// A conversation key: a tuple of user/chat IDs and optional string identifiers
/// serialised as a `Vec` because Rust tuples are fixed-length.
pub type ConversationKey = ;
/// A single element inside a [`ConversationKey`].
/// The state map maintained by a `ConversationHandler`.
pub type ConversationDict = ;
// ---------------------------------------------------------------------------
// Callback-data cache types
// ---------------------------------------------------------------------------
/// A single entry in the callback-data cache:
/// `(callback_uuid, timestamp, keyboard_data)`.
pub type CallbackDataEntry = ;
/// The full callback-data cache payload as persisted.
/// `(list_of_entries, uuid_to_callback_data_mapping)`.
pub type CdcData = ;
// ---------------------------------------------------------------------------
// Persistence data map
// ---------------------------------------------------------------------------
/// Convenience alias for the JSON-like maps used as user/chat/bot data.
pub type JsonMap = ;
// ---------------------------------------------------------------------------
// Filter data
// ---------------------------------------------------------------------------
/// Data extracted by a filter for downstream handler consumption.
pub type FilterDataDict = ;
// ---------------------------------------------------------------------------
// Job callback
// ---------------------------------------------------------------------------
/// A boxed, `Send + Sync` future that resolves to `()`.
pub type BoxFuture<'a> = ;
/// The signature of a job callback: receives *something* (the context) and
/// returns a future. Concrete context types are supplied at the application
/// level; here we erase them behind `Value` to keep the utils crate agnostic.
pub type JobCallback = ;
// ---------------------------------------------------------------------------
// Rate-limiter argument
// ---------------------------------------------------------------------------
/// Opaque payload that a caller can attach to a rate-limited request.
/// Mirrors Python's `RLARGS` type-variable.
pub type RateLimitArgs = Value;
// ---------------------------------------------------------------------------
// Handler callback (type-erased)
// ---------------------------------------------------------------------------
/// Type-erased handler callback: `async fn(update, context) -> RT`.
pub type HandlerCallback =
;