linkbreakers 1.46.1

Official Rust SDK for the Linkbreakers API
Documentation
/*
 * Linkbreakers API
 *
 * This is a documentation of all the APIs of Linkbreakers
 *
 * The version of the OpenAPI document: 1.46.1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// VisitorInput : Input payload for identifying/updating a visitor - Reserved keys (system fields) have a \"$\" prefix, e.g. \"$email\", \"$phone\", \"$firstName\", \"$lastName\". - All other keys are treated as custom attributes and stored in `attributes`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct VisitorInput {
    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
    pub data: Option<serde_json::Value>,
}

impl VisitorInput {
    /// Input payload for identifying/updating a visitor - Reserved keys (system fields) have a \"$\" prefix, e.g. \"$email\", \"$phone\", \"$firstName\", \"$lastName\". - All other keys are treated as custom attributes and stored in `attributes`.
    pub fn new() -> VisitorInput {
        VisitorInput {
            data: None,
        }
    }
}