messaging_api_line/models/
operator_recipient.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct OperatorRecipient {
16    /// Type of recipient
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<String>,
19    /// Create a new recipient object by taking the logical conjunction (AND) of the specified array of recipient objects. 
20    #[serde(rename = "and", skip_serializing_if = "Option::is_none")]
21    pub and: Option<Vec<models::Recipient>>,
22    /// Create a new recipient object by taking the logical disjunction (OR) of the specified array of recipient objects. 
23    #[serde(rename = "or", skip_serializing_if = "Option::is_none")]
24    pub or: Option<Vec<models::Recipient>>,
25    #[serde(rename = "not", skip_serializing_if = "Option::is_none")]
26    pub not: Option<Box<models::Recipient>>,
27}
28
29impl OperatorRecipient {
30    pub fn new() -> OperatorRecipient {
31        OperatorRecipient {
32            r#type: None,
33            and: None,
34            or: None,
35            not: None,
36        }
37    }
38}
39