twapi_v2/responses/
meta_count.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq)]
4pub struct MetaCount {
5 pub total_tweet_count: i64,
6 #[serde(skip_serializing_if = "Option::is_none")]
7 pub next_token: Option<String>,
8 #[serde(skip_serializing_if = "Option::is_none")]
9 pub previous_token: Option<String>,
10 #[serde(flatten)]
11 pub extra: std::collections::HashMap<String, serde_json::Value>,
12}
13
14impl MetaCount {
15 pub fn is_empty_extra(&self) -> bool {
16 let res = self.extra.is_empty();
17 if !res {
18 println!("MetaCount {:?}", self.extra);
19 }
20 res
21 }
22}