1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
*
* The version of the OpenAPI document: 1.0.4
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EstimateAdReach200Response {
/// Whether a pre-flight estimate is available on this platform. False for Google and TikTok.
#[serde(rename = "available")]
pub available: bool,
/// Lower bound of the estimated reachable audience. Present only when available.
#[serde(
rename = "lower",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub lower: Option<Option<i32>>,
/// Upper bound of the estimated reachable audience. Present only when available.
#[serde(
rename = "upper",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub upper: Option<Option<i32>>,
/// Optional estimated daily reach/results at the given budget, when the platform returns it.
#[serde(
rename = "daily",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub daily: Option<Option<i32>>,
/// Currency of any monetary fields in the estimate, when applicable.
#[serde(
rename = "currency",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub currency: Option<Option<String>>,
/// Meta only. False when Meta is still computing the estimate (the audience is too new); retry shortly.
#[serde(
rename = "estimateReady",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub estimate_ready: Option<Option<bool>>,
}
impl EstimateAdReach200Response {
pub fn new(available: bool) -> EstimateAdReach200Response {
EstimateAdReach200Response {
available,
lower: None,
upper: None,
daily: None,
currency: None,
estimate_ready: None,
}
}
}