linkbreakers 1.101.6

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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MessagePagePayload {
    #[serde(rename = "buttonLabel", skip_serializing_if = "Option::is_none")]
    pub button_label: Option<String>,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "navigationType")]
    pub navigation_type: models::MessagePageNavigationType,
    #[serde(rename = "timerSeconds", skip_serializing_if = "Option::is_none")]
    pub timer_seconds: Option<i32>,
    #[serde(rename = "title")]
    pub title: String,
}

impl MessagePagePayload {
    pub fn new(navigation_type: models::MessagePageNavigationType, title: String) -> MessagePagePayload {
        MessagePagePayload {
            button_label: None,
            description: None,
            navigation_type,
            timer_seconds: None,
            title,
        }
    }
}