/*
* Linkbreakers API
*
* This is a documentation of all the APIs of Linkbreakers
*
* The version of the OpenAPI document: 1.134.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// AttributeCapture : A step's opt-in to save values to the visitor's profile, so a workflow can record qualification without a form: a tapped choice, a milestone reached, or the context of the link that was scanned. Available on LINK_VISIT, MULTI_LINK, MESSAGE_PAGE, CLIENT_REDIRECT, CONTACT_CARD, THANK_YOU_PAGE and SOCIAL_LINKS_PAGE steps. Forms already save every answer, and conditions only route on what is already known.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AttributeCapture {
/// Off keeps the configured writes without running them.
#[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// Up to 20 values to save. Each runs when the visitor goes through the step.
#[serde(rename = "writes", skip_serializing_if = "Option::is_none")]
pub writes: Option<Vec<models::AttributeWrite>>,
}
impl AttributeCapture {
/// A step's opt-in to save values to the visitor's profile, so a workflow can record qualification without a form: a tapped choice, a milestone reached, or the context of the link that was scanned. Available on LINK_VISIT, MULTI_LINK, MESSAGE_PAGE, CLIENT_REDIRECT, CONTACT_CARD, THANK_YOU_PAGE and SOCIAL_LINKS_PAGE steps. Forms already save every answer, and conditions only route on what is already known.
pub fn new() -> AttributeCapture {
AttributeCapture {
enabled: None,
writes: None,
}
}
}