linkbreakers 1.113.0

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.113.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LinksServiceUpdateBody {
    #[serde(rename = "directoryId", skip_serializing_if = "Option::is_none")]
    pub directory_id: Option<String>,
    #[serde(rename = "directoryIdDelete", skip_serializing_if = "Option::is_none")]
    pub directory_id_delete: Option<bool>,
    #[serde(rename = "fallbackDestination", skip_serializing_if = "Option::is_none")]
    pub fallback_destination: Option<String>,
    /// Deprecated: superseded by purpose, which carries both the aim and the audience in one field. Still read from storage so existing consumers keep working, but nothing writes it any more.
    #[serde(rename = "leadGoalDefinition", skip_serializing_if = "Option::is_none")]
    pub lead_goal_definition: Option<String>,
    /// Deprecated: superseded by purpose. See lead_goal_definition.
    #[serde(rename = "leadTargetDefinition", skip_serializing_if = "Option::is_none")]
    pub lead_target_definition: Option<String>,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "pageThemeId", skip_serializing_if = "Option::is_none")]
    pub page_theme_id: Option<String>,
    /// What the user is trying to achieve with this link, in one or two sentences. Lead scoring weights the link from this, and the link's assistant conversations read it as context, so it is restated whenever the workflow changes shape.
    #[serde(rename = "purpose", skip_serializing_if = "Option::is_none")]
    pub purpose: Option<String>,
    #[serde(rename = "qrcodeTemplateId", skip_serializing_if = "Option::is_none")]
    pub qrcode_template_id: Option<String>,
    #[serde(rename = "qrcodeTemplateIdDelete", skip_serializing_if = "Option::is_none")]
    pub qrcode_template_id_delete: Option<bool>,
    /// Set the tags to associate with the link. If a tag with the given name doesn't exist, it will be created.
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
    pub tags: Option<Vec<String>>,
    /// Delete all tags from the link If true, all tags will be removed from the link.
    #[serde(rename = "tagsDelete", skip_serializing_if = "Option::is_none")]
    pub tags_delete: Option<bool>,
}

impl LinksServiceUpdateBody {
    pub fn new() -> LinksServiceUpdateBody {
        LinksServiceUpdateBody {
            directory_id: None,
            directory_id_delete: None,
            fallback_destination: None,
            lead_goal_definition: None,
            lead_target_definition: None,
            name: None,
            page_theme_id: None,
            purpose: None,
            qrcode_template_id: None,
            qrcode_template_id_delete: None,
            tags: None,
            tags_delete: None,
        }
    }
}