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
//! Typing Indicator Model
//!
//! This module provides the request and response models for typing indicators used in the Sendblue API.
use PhoneNumber;
use ;
/*
use crate::models::deserialize_phone_number; */
/// Status of the typing indicator in the Sendblue API
///
/// # Variants
///
/// * `Sent` - The typing indicator was sent successfully
/// * `Error` - An error occurred while sending the typing indicator
/// Response from the Sendblue API after sending a typing indicator
///
/// The response comes back as JSON with the following fields:
/// - `number`: The number you evaluated in E.164 format
/// - `status`: The status of the typing indicator you tried to send (this will either be SENT or ERROR)
/// - `error_message`: The error message if the status is ERROR
/// Typing Indicator Request
///
/// This struct represents a request to send a typing indicator in the Sendblue API.
///
/// # Examples
///
/// ```
/// use sendblue::models::TypingIndicator;
/// use phonenumber::parse;
///
/// let phone_number = parse(None, "+1234567890").unwrap();
/// let request = TypingIndicator {
/// number: phone_number,
/// };
/// ```