linkbreakers 1.111.10

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

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

/// FunnelStep : FunnelStep is one step of the journey, already placed in order.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FunnelStep {
    /// Choices offered inside this step, where it offers one. A multi-link step is a single row but several different things happened in it.
    #[serde(rename = "branches", skip_serializing_if = "Option::is_none")]
    pub branches: Option<Vec<models::FunnelBranch>>,
    #[serde(rename = "conversionRate", skip_serializing_if = "Option::is_none")]
    pub conversion_rate: Option<f64>,
    #[serde(rename = "dropOffFromPrevious", skip_serializing_if = "Option::is_none")]
    pub drop_off_from_previous: Option<String>,
    #[serde(rename = "identifiedVisitors", skip_serializing_if = "Option::is_none")]
    pub identified_visitors: Option<String>,
    #[serde(rename = "occurrences", skip_serializing_if = "Option::is_none")]
    pub occurrences: Option<String>,
    #[serde(rename = "stepAction", skip_serializing_if = "Option::is_none")]
    pub step_action: Option<String>,
    #[serde(rename = "stepKind", skip_serializing_if = "Option::is_none")]
    pub step_kind: Option<String>,
    /// Journeys that reached this step, counted per event. Events are used rather than visitors because visitor_id is NULL on most traces in practice, and counting visitors makes later steps look wider than the arrival they came from, which pushes conversion rates above 100%.
    #[serde(rename = "visits", skip_serializing_if = "Option::is_none")]
    pub visits: Option<String>,
}

impl FunnelStep {
    /// FunnelStep is one step of the journey, already placed in order.
    pub fn new() -> FunnelStep {
        FunnelStep {
            branches: None,
            conversion_rate: None,
            drop_off_from_previous: None,
            identified_visitors: None,
            occurrences: None,
            step_action: None,
            step_kind: None,
            visits: None,
        }
    }
}