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

/// DeliveryReportMetadata : Metadata about the file delivery.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeliveryReportMetadata {
    /// The total number of delivery attempts for the file.
    #[serde(rename = "attempts", skip_serializing_if = "Option::is_none")]
    pub attempts: Option<f64>,
    #[serde(rename = "mdn_file", skip_serializing_if = "Option::is_none")]
    pub mdn_file: Option<Box<models::MdnFile>>,
}

impl DeliveryReportMetadata {
    /// Metadata about the file delivery.
    pub fn new() -> DeliveryReportMetadata {
        DeliveryReportMetadata {
            attempts: None,
            mdn_file: None,
        }
    }
}