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
//! This module contains the error [`ConvertToType`] that can occur when type be converted to the desired type.
//! For example, if you try to convert an [`Update`] to a [`Message`] type, but the update represents a [`CallbackQuery`], you got this error.
//!
//! This error type used usually in [`Extractor`] trait implementations when the type conversion fails.
//!
//! [`Update`]: telers::types::Update
//! [`Message`]: telers::types::Message
//! [`CallbackQuery`]: telers::types::CallbackQuery
//! [`Extractor`]: telers::Extractor
use ExtractionError;
/// This error can occur when type be converted to the desired type.
/// For example, if you try to convert an [`crate::types::Update`] to a [`crate::types::Message`] type,
/// but the update represents a [`crate::types::CallbackQuery`], you got this error.