pub struct ListMessageParams {
pub account_sid: String,
pub to: Option<String>,
pub from: Option<String>,
pub date_sent: Option<String>,
pub date_sent_less_than: Option<String>,
pub date_sent_greater_than: Option<String>,
pub page_size: Option<i32>,
pub page: Option<i32>,
pub page_token: Option<String>,
}
Expand description
struct for passing parameters to the method list_message
Fields§
§account_sid: String
The SID of the Account associated with the Message resources.
to: Option<String>
Filter by recipient. For example: Set this to
parameter to +15558881111
to retrieve a list of Message resources with to
properties of +15558881111
from: Option<String>
Filter by sender. For example: Set this from
parameter to +15552229999
to retrieve a list of Message resources with from
properties of +15552229999
date_sent: Option<String>
Filter by Message sent_date
. Accepts GMT dates in the following formats: YYYY-MM-DD
(to find Messages with a specific sent_date
), <=YYYY-MM-DD
(to find Messages with sent_date
s on and before a specific date), and >=YYYY-MM-DD
(to find Messages with sent_dates
on and after a specific date).
date_sent_less_than: Option<String>
Filter by Message sent_date
. Accepts GMT dates in the following formats: YYYY-MM-DD
(to find Messages with a specific sent_date
), <=YYYY-MM-DD
(to find Messages with sent_date
s on and before a specific date), and >=YYYY-MM-DD
(to find Messages with sent_dates
on and after a specific date).
date_sent_greater_than: Option<String>
Filter by Message sent_date
. Accepts GMT dates in the following formats: YYYY-MM-DD
(to find Messages with a specific sent_date
), <=YYYY-MM-DD
(to find Messages with sent_date
s on and before a specific date), and >=YYYY-MM-DD
(to find Messages with sent_dates
on and after a specific date).
page_size: Option<i32>
How many resources to return in each list page. The default is 50, and the maximum is 1000.
page: Option<i32>
The page index. This value is simply for client state.
page_token: Option<String>
The page token. This is provided by the API.
Trait Implementations§
Source§impl Clone for ListMessageParams
impl Clone for ListMessageParams
Source§fn clone(&self) -> ListMessageParams
fn clone(&self) -> ListMessageParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more