// Copyright (c) 2018 The openrtb-rust authors
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use serde_utils;
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub struct Native {
pub request: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub ver: Option<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub api: Vec<u64>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub battr: Vec<u64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ext: Option<serde_utils::Ext>,
}