pub struct QueryParams {
pub dm_event_fields: Option<Vec<DMEventField>>,
pub event_types: Option<Vec<EventType>>,
pub expansions: Option<Vec<Expansion>>,
pub max_results: Option<u32>,
pub media_fields: Option<Vec<MediaField>>,
pub pagination_token: Option<String>,
pub tweet_fields: Option<Vec<TweetField>>,
pub user_fields: Option<Vec<UserField>>,
}
Fields§
§dm_event_fields: Option<Vec<DMEventField>>
§event_types: Option<Vec<EventType>>
§expansions: Option<Vec<Expansion>>
§max_results: Option<u32>
The maximum number of results to be returned in a page. Must be between 1 and 100. The default is 100.
media_fields: Option<Vec<MediaField>>
§pagination_token: Option<String>
Contains either the next_token or previous_token value.
tweet_fields: Option<Vec<TweetField>>
§user_fields: Option<Vec<UserField>>
Implementations§
Source§impl QueryParams
impl QueryParams
pub fn to_query_string(&self) -> String
Trait Implementations§
Source§impl Debug for QueryParams
impl Debug for QueryParams
Source§impl<'de> Deserialize<'de> for QueryParams
impl<'de> Deserialize<'de> for QueryParams
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
Auto Trait Implementations§
impl Freeze for QueryParams
impl RefUnwindSafe for QueryParams
impl Send for QueryParams
impl Sync for QueryParams
impl Unpin for QueryParams
impl UnwindSafe for QueryParams
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