late 0.0.936

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).
Documentation
/*
 * 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).
 *
 * 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};

/// CommentAutomationAudience : Who a comment automation answers. Instagram only - Meta exposes the follow relationship on no other platform, and only for people who have MESSAGED the account (a comment grants no consent). `whenUnknown` is therefore the important setting: it decides what happens for a first-time commenter.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CommentAutomationAudience {
    #[serde(rename = "followerStatus", skip_serializing_if = "Option::is_none")]
    pub follower_status: Option<FollowerStatus>,
    /// Skip commenters with fewer followers than this. Omit for no size rule.
    #[serde(rename = "minFollowerCount", skip_serializing_if = "Option::is_none")]
    pub min_follower_count: Option<i32>,
    /// What to do when Instagram will not reveal the follow relationship.   * `send` (default) - deliver the DM anyway (fails open).   * `skip` - stay silent.   * `verify` - send `followGate.message` with a confirm button. Tapping it is a     message, which grants consent, so the re-check on the tap resolves and the     real DM (or `followGate.notFollowingMessage`) follows automatically.
    #[serde(rename = "whenUnknown", skip_serializing_if = "Option::is_none")]
    pub when_unknown: Option<WhenUnknown>,
}

impl CommentAutomationAudience {
    /// Who a comment automation answers. Instagram only - Meta exposes the follow relationship on no other platform, and only for people who have MESSAGED the account (a comment grants no consent). `whenUnknown` is therefore the important setting: it decides what happens for a first-time commenter.
    pub fn new() -> CommentAutomationAudience {
        CommentAutomationAudience {
            follower_status: None,
            min_follower_count: None,
            when_unknown: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum FollowerStatus {
    #[serde(rename = "any")]
    Any,
    #[serde(rename = "follower")]
    Follower,
    #[serde(rename = "non_follower")]
    NonFollower,
}

impl Default for FollowerStatus {
    fn default() -> FollowerStatus {
        Self::Any
    }
}
/// What to do when Instagram will not reveal the follow relationship.   * `send` (default) - deliver the DM anyway (fails open).   * `skip` - stay silent.   * `verify` - send `followGate.message` with a confirm button. Tapping it is a     message, which grants consent, so the re-check on the tap resolves and the     real DM (or `followGate.notFollowingMessage`) follows automatically.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum WhenUnknown {
    #[serde(rename = "send")]
    Send,
    #[serde(rename = "skip")]
    Skip,
    #[serde(rename = "verify")]
    Verify,
}

impl Default for WhenUnknown {
    fn default() -> WhenUnknown {
        Self::Send
    }
}