/*
 * Mithril
 *
 * Mithril Compute API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListLifecycleScriptsResponse {
    #[serde(rename = "data")]
    pub data: Vec<models::LifecycleScriptModel>,
    #[serde(rename = "next_cursor", skip_serializing_if = "Option::is_none")]
    pub next_cursor: Option<String>,
}

impl ListLifecycleScriptsResponse {
    pub fn new(data: Vec<models::LifecycleScriptModel>) -> ListLifecycleScriptsResponse {
        ListLifecycleScriptsResponse {
            data,
            next_cursor: None,
        }
    }
}
