/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// CreateTriggerResponse : Response returned when a native trigger is created
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateTriggerResponse {
    /// The external ID of the created trigger from the external service
    #[serde(rename = "external_id")]
    pub external_id: String,
}

impl CreateTriggerResponse {
    /// Response returned when a native trigger is created
    pub fn new(external_id: String) -> CreateTriggerResponse {
        CreateTriggerResponse {
            external_id,
        }
    }
}

