twitter_v2/data/
withheld.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Copy, Debug, Serialize, Deserialize, Eq, PartialEq)]
4#[serde(rename_all = "snake_case")]
5pub enum WithheldScope {
6 Tweet,
7 User,
8}
9
10#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
11pub struct Withheld {
12 #[serde(skip_serializing_if = "Option::is_none")]
13 pub copyright: Option<bool>,
14 pub country_codes: Vec<String>,
15 #[serde(skip_serializing_if = "Option::is_none")]
16 pub scope: Option<WithheldScope>,
17}