// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Public summary of what started a run: just the trigger category.
/// The full per-variant detail (schedule_id, parent_run_id, sender, ...) is
/// kept internally on `StoredWorkflowRun.trigger` but intentionally not
/// exposed in the public API surface.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TriggerInfo {
    /// What started this run
    #[serde(rename = "type")]
    pub type_: TriggerInfoType,
}
impl TriggerInfo {
    /// Construct a new `TriggerInfo` with the required fields set.
    #[allow(deprecated)]
    pub fn new(type_: TriggerInfoType) -> Self {
        Self { type_ }
    }
}
