linkbreakers 1.126.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.126.1
 * 
 * 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>,
    /// Where visitors are sent once the link has expired. Empty serves the built-in expired page instead.
    #[serde(rename = "expiredDestination", skip_serializing_if = "Option::is_none")]
    pub expired_destination: Option<String>,
    /// Remove the expired destination from this link. If true, expired_destination is cleared and expired visitors see the built-in expired page instead.
    #[serde(rename = "expiredDestinationDelete", skip_serializing_if = "Option::is_none")]
    pub expired_destination_delete: Option<bool>,
    /// When the link stops resolving. Empty leaves the current value untouched. Must be in the future. Once it passes the link is removed from the workspace and only the expired destination is served.
    #[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
    pub expires_at: Option<String>,
    /// Remove the expiration from this link. If true, expires_at is cleared and the link stops expiring.
    #[serde(rename = "expiresAtDelete", skip_serializing_if = "Option::is_none")]
    pub expires_at_delete: Option<bool>,
    #[serde(rename = "fallbackDestination", skip_serializing_if = "Option::is_none")]
    pub fallback_destination: 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,
            expired_destination: None,
            expired_destination_delete: None,
            expires_at: None,
            expires_at_delete: None,
            fallback_destination: None,
            name: None,
            page_theme_id: None,
            purpose: None,
            qrcode_template_id: None,
            qrcode_template_id_delete: None,
            tags: None,
            tags_delete: None,
        }
    }
}