/*
 * 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, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateAdAudienceRequest {
    UploadedOrDerivedAudience(Box<models::UploadedOrDerivedAudience>),
    SavedTargetingAudience(Box<models::SavedTargetingAudience>),
}

impl Default for CreateAdAudienceRequest {
    fn default() -> Self {
        Self::UploadedOrDerivedAudience(Default::default())
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "customer_list")]
    CustomerList,
    #[serde(rename = "website")]
    Website,
    #[serde(rename = "lookalike")]
    Lookalike,
    #[serde(rename = "saved_targeting")]
    SavedTargeting,
}

impl Default for Type {
    fn default() -> Type {
        Self::CustomerList
    }
}
