// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Run started by a workflow schedule.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ScheduleTrigger {
    /// Defaults to `schedule`.
    #[serde(rename = "type")]
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub type_: Option<String>,
    /// ID of the schedule that fired this run
    pub schedule_id: String,
}
impl ScheduleTrigger {
    /// Construct a new `ScheduleTrigger` with the required fields set.
    #[allow(deprecated)]
    pub fn new(schedule_id: impl Into<String>) -> Self {
        Self {
            type_: Default::default(),
            schedule_id: schedule_id.into(),
        }
    }
}
