messaging_api_line/models/filter.rs
1/*
2 * LINE Messaging API
3 *
4 * This document describes LINE Messaging API.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Filter : Filter for narrowcast
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Filter {
17 #[serde(rename = "demographic", skip_serializing_if = "Option::is_none")]
18 pub demographic: Option<Box<models::DemographicFilter>>,
19}
20
21impl Filter {
22 /// Filter for narrowcast
23 pub fn new() -> Filter {
24 Filter {
25 demographic: None,
26 }
27 }
28}
29