/*
 * rivet-api-public
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2.3.0-rc.11
 * Contact: developer@rivet.gg
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RunnerConfigKindOneOfNormal {
    /// Seconds.
    #[serde(rename = "actor_eviction_delay", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub actor_eviction_delay: Option<Option<i32>>,
    /// Seconds.
    #[serde(rename = "actor_eviction_period", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub actor_eviction_period: Option<Option<i32>>,
    /// Actors per second.
    #[serde(rename = "actor_eviction_rate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub actor_eviction_rate: Option<Option<f32>>,
    #[serde(rename = "drain_on_version_upgrade", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub drain_on_version_upgrade: Option<Option<bool>>,
}

impl RunnerConfigKindOneOfNormal {
    pub fn new() -> RunnerConfigKindOneOfNormal {
        RunnerConfigKindOneOfNormal {
            actor_eviction_delay: None,
            actor_eviction_period: None,
            actor_eviction_rate: None,
            drain_on_version_upgrade: None,
        }
    }
}

