Struct twilio::request::list_message::ListMessageRequest
source · pub struct ListMessageRequest<'a> {
pub account_sid: String,
pub date_sent: Option<DateTime<Utc>>,
pub date_sent_gt: Option<DateTime<Utc>>,
pub date_sent_lt: Option<DateTime<Utc>>,
pub from: Option<String>,
pub page: Option<i64>,
pub page_size: Option<i64>,
pub page_token: Option<String>,
pub to: Option<String>,
/* private fields */
}Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§account_sid: String§date_sent: Option<DateTime<Utc>>§date_sent_gt: Option<DateTime<Utc>>§date_sent_lt: Option<DateTime<Utc>>§from: Option<String>§page: Option<i64>§page_size: Option<i64>§page_token: Option<String>§to: Option<String>Implementations§
source§impl<'a> ListMessageRequest<'a>
impl<'a> ListMessageRequest<'a>
pub async fn send(self) -> InMemoryResult<Value>
pub fn date_sent(self, date_sent: DateTime<Utc>) -> Self
pub fn date_sent_gt(self, date_sent_gt: DateTime<Utc>) -> Self
pub fn date_sent_lt(self, date_sent_lt: DateTime<Utc>) -> Self
pub fn from(self, from: &str) -> Self
pub fn page(self, page: i64) -> Self
pub fn page_size(self, page_size: i64) -> Self
pub fn page_token(self, page_token: &str) -> Self
pub fn to(self, to: &str) -> Self
Trait Implementations§
source§impl<'a> Clone for ListMessageRequest<'a>
impl<'a> Clone for ListMessageRequest<'a>
source§fn clone(&self) -> ListMessageRequest<'a>
fn clone(&self) -> ListMessageRequest<'a>
Returns a copy 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<'a> IntoFuture for ListMessageRequest<'a>
impl<'a> IntoFuture for ListMessageRequest<'a>
§type Output = Result<Value, Error<InMemoryBody>>
type Output = Result<Value, Error<InMemoryBody>>
The output that the future will produce on completion.
§type IntoFuture = Pin<Box<dyn Future<Output = <ListMessageRequest<'a> as IntoFuture>::Output> + Send + 'a, Global>>
type IntoFuture = Pin<Box<dyn Future<Output = <ListMessageRequest<'a> as IntoFuture>::Output> + Send + 'a, Global>>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more