twitter_v2/query/
expansions.rs1use strum::Display;
2
3#[derive(Copy, Clone, Debug, Display)]
4#[strum(serialize_all = "snake_case")]
5pub enum TweetExpansion {
6 AuthorId,
7 #[strum(serialize = "referenced_tweets.id")]
8 ReferencedTweetsId,
9 InReplyToUserId,
10 #[strum(serialize = "attachments.media_keys")]
11 AttachmentsMediaKeys,
12 #[strum(serialize = "attachments.poll_ids")]
13 AttachmentsPollIds,
14 #[strum(serialize = "geo.place_id")]
15 GeoPlaceId,
16 #[strum(serialize = "entities.mentions.username")]
17 EntitiesMentionsUsername,
18 #[strum(serialize = "referenced_tweets.id.author_id")]
19 ReferencedTweetsIdAuthorId,
20}
21
22#[derive(Copy, Clone, Debug, Display)]
23#[strum(serialize_all = "snake_case")]
24pub enum UserExpansion {
25 PinnedTweetId,
26}
27
28#[derive(Copy, Clone, Debug, Display)]
29#[strum(serialize_all = "snake_case")]
30pub enum SpaceExpansion {
31 InvitedUserIds,
32 SpeakerIds,
33 CreatorId,
34 HostIds,
35}
36
37#[derive(Copy, Clone, Debug, Display)]
38#[strum(serialize_all = "snake_case")]
39pub enum LimitedTweetExpansion {
40 AuthorId,
41}
42
43#[derive(Copy, Clone, Debug, Display)]
44#[strum(serialize_all = "snake_case")]
45pub enum ListExpansion {
46 OwnerId,
47}