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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct X12Delimiters {
    /// The data element separator character.
    #[serde(rename = "element")]
    pub element: String,
    /// The component element separator character.
    #[serde(rename = "composite")]
    pub composite: String,
    /// The repetition separator character.
    #[serde(rename = "repetition")]
    pub repetition: String,
    /// The segment terminator character.
    #[serde(rename = "segment")]
    pub segment: String,
}

impl X12Delimiters {
    pub fn new(element: String, composite: String, repetition: String, segment: String) -> X12Delimiters {
        X12Delimiters {
            element,
            composite,
            repetition,
            segment,
        }
    }
}