autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Stedi Enrollment
 *
 * The Stedi Enrollment Service manages provider enrollments with healthcare payers. It tracks enrollment status, provider details, and supports batch enrollment processing to ensure providers have the necessary credentials before processing healthcare transactions. 
 *
 * The version of the OpenAPI document: 2024-09-01
 * Contact: healthcare@stedi.com
 * Generated by: https://openapi-generator.tech
 */

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

/// ExportEnrollmentsCsvResponseContent : Output containing export results. If no enrollments found, downloadUrl and filename will be undefined and recordCount will be 0.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExportEnrollmentsCsvResponseContent {
    /// A presigned URL for downloading the generated CSV file from S3. Undefined if no enrollments found.
    #[serde(rename = "downloadUrl", skip_serializing_if = "Option::is_none")]
    pub download_url: Option<String>,
    /// The filename of the generated CSV file. Undefined if no enrollments found.
    #[serde(rename = "filename", skip_serializing_if = "Option::is_none")]
    pub filename: Option<String>,
    /// The number of enrollment records exported to the CSV file. 0 if no enrollments found.
    #[serde(rename = "recordCount")]
    pub record_count: f64,
}

impl ExportEnrollmentsCsvResponseContent {
    /// Output containing export results. If no enrollments found, downloadUrl and filename will be undefined and recordCount will be 0.
    pub fn new(record_count: f64) -> ExportEnrollmentsCsvResponseContent {
        ExportEnrollmentsCsvResponseContent {
            download_url: None,
            filename: None,
            record_count,
        }
    }
}