/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
*
* The version of the OpenAPI document: 1.350.9
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// TikTokSmartPlusAdLevelReview : The ad-level verdict of a Smart+ ad (`smart_plus_ad_review_infos`). Null when TikTok returned none.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TikTokSmartPlusAdLevelReview {
#[serde(rename = "reviewStatus", skip_serializing_if = "Option::is_none")]
pub review_status: Option<models::TikTokSmartPlusReviewStatus>,
/// TikTok `review_status`, verbatim.
#[serde(
rename = "rawReviewStatus",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub raw_review_status: Option<Option<String>>,
/// Every distinct reason across `rejections`.
#[serde(rename = "rejectReasons", skip_serializing_if = "Option::is_none")]
pub reject_reasons: Option<Vec<String>>,
/// Location codes that passed the review.
#[serde(rename = "passedLocations", skip_serializing_if = "Option::is_none")]
pub passed_locations: Option<Vec<String>>,
/// TikTok `appeal_status`, verbatim: NOT_APPEALED, APPEALING, APPEAL_SUCCESSFUL, APPEAL_FAILED, APPEAL_DONE.
#[serde(
rename = "appealStatus",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub appeal_status: Option<Option<String>>,
#[serde(
rename = "appealRejectReasons",
skip_serializing_if = "Option::is_none"
)]
pub appeal_reject_reasons: Option<Vec<String>>,
#[serde(rename = "rejections", skip_serializing_if = "Option::is_none")]
pub rejections: Option<Vec<models::TikTokReviewRejection>>,
}
impl TikTokSmartPlusAdLevelReview {
/// The ad-level verdict of a Smart+ ad (`smart_plus_ad_review_infos`). Null when TikTok returned none.
pub fn new() -> TikTokSmartPlusAdLevelReview {
TikTokSmartPlusAdLevelReview {
review_status: None,
raw_review_status: None,
reject_reasons: None,
passed_locations: None,
appeal_status: None,
appeal_reject_reasons: None,
rejections: None,
}
}
}