autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Core
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2023-08-01
 * Contact: core@stedi.com
 * Generated by: https://openapi-generator.tech
 */

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

/// X12TransactionMetadataProfile : The Application Code and ISA ID for the profile.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct X12TransactionMetadataProfile {
    /// The Application Code for the profile, which is used to identify the entity in the `GS` header of an EDI file.
    #[serde(rename = "applicationCode")]
    pub application_code: String,
    #[serde(rename = "isa")]
    pub isa: Box<models::X12TransactionMetadataProfileIsa>,
}

impl X12TransactionMetadataProfile {
    /// The Application Code and ISA ID for the profile.
    pub fn new(application_code: String, isa: models::X12TransactionMetadataProfileIsa) -> X12TransactionMetadataProfile {
        X12TransactionMetadataProfile {
            application_code,
            isa: Box::new(isa),
        }
    }
}