dodopayments_rust 2.2.1

Rust SDK for Dodo Payments API
Documentation
/*
 * public
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.97.5
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UploadEntitlementFileResponse {
    /// Identifier of the attached file. Pass it to `DELETE /entitlements/{id}/files/{file_id}` to detach the file later.
    #[serde(rename = "file_id")]
    pub file_id: String,
}

impl UploadEntitlementFileResponse {
    pub fn new(file_id: String) -> UploadEntitlementFileResponse {
        UploadEntitlementFileResponse {
            file_id,
        }
    }
}