autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Stedi Event Destinations
 *
 * The Stedi Events Service manages event destinations and event delivery. It supports destination CRUD operations, secret management for signature verification, event creation and management, and delivery tracking with resend capabilities. 
 *
 * The version of the OpenAPI document: 2026-02-01
 * Contact: healthcare@stedi.com
 * Generated by: https://openapi-generator.tech
 */

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

/// EventPayload : The event payload, discriminated by object type. Each variant corresponds to a versioned event schema.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EventPayload {
    /// A `v1` thin event payload.
    #[serde(rename = "v1Event")]
    pub v1_event: Box<models::V1EventPayload>,
}

impl EventPayload {
    /// The event payload, discriminated by object type. Each variant corresponds to a versioned event schema.
    pub fn new(v1_event: models::V1EventPayload) -> EventPayload {
        EventPayload {
            v1_event: Box::new(v1_event),
        }
    }
}