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};

/// EventPayloadResourceRef : A reference to a resource affected by an event.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EventPayloadResourceRef {
    /// The resource identifier.
    #[serde(rename = "id")]
    pub id: String,
    /// The resource type. Uses dot notation to indicate nested resources. For example, `enrollment.document` indicates a document associated with a transaction enrollment request.
    #[serde(rename = "type")]
    pub r#type: String,
}

impl EventPayloadResourceRef {
    /// A reference to a resource affected by an event.
    pub fn new(id: String, r#type: String) -> EventPayloadResourceRef {
        EventPayloadResourceRef {
            id,
            r#type,
        }
    }
}