pub struct NumberOfMessagesResponse {
pub status: Status,
pub success: Option<i64>,
}
Fields§
§status: Status
Aggregation process status. One of: ready
: The number of messages can be obtained. unready
: We haven’t finished calculating the number of sent messages for the specified in date. For example, this property is returned when the delivery date or a future date is specified. Calculation usually takes about a day. unavailable_for_privacy
: The total number of messages on the specified day is less than 20. out_of_service
: The specified date is earlier than the date on which we first started calculating sent messages (March 31, 2018).
success: Option<i64>
The number of messages delivered using the phone number on the date specified in date
. The response has this property only when the value of status
is ready
.
Implementations§
Source§impl NumberOfMessagesResponse
impl NumberOfMessagesResponse
pub fn new(status: Status) -> NumberOfMessagesResponse
Trait Implementations§
Source§impl Clone for NumberOfMessagesResponse
impl Clone for NumberOfMessagesResponse
Source§fn clone(&self) -> NumberOfMessagesResponse
fn clone(&self) -> NumberOfMessagesResponse
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 NumberOfMessagesResponse
impl Debug for NumberOfMessagesResponse
Source§impl Default for NumberOfMessagesResponse
impl Default for NumberOfMessagesResponse
Source§fn default() -> NumberOfMessagesResponse
fn default() -> NumberOfMessagesResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NumberOfMessagesResponse
impl<'de> Deserialize<'de> for NumberOfMessagesResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NumberOfMessagesResponse
impl PartialEq for NumberOfMessagesResponse
Source§impl Serialize for NumberOfMessagesResponse
impl Serialize for NumberOfMessagesResponse
impl StructuralPartialEq for NumberOfMessagesResponse
Auto Trait Implementations§
impl Freeze for NumberOfMessagesResponse
impl RefUnwindSafe for NumberOfMessagesResponse
impl Send for NumberOfMessagesResponse
impl Sync for NumberOfMessagesResponse
impl Unpin for NumberOfMessagesResponse
impl UnwindSafe for NumberOfMessagesResponse
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