Skip to main content

dodopayments_rust/models/
custom_field_response.rs

1/*
2 * public
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.87.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CustomFieldResponse : Customer's response to a custom field
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomFieldResponse {
17    /// Key matching the custom field definition
18    #[serde(rename = "key")]
19    pub key: String,
20    /// Value provided by customer
21    #[serde(rename = "value")]
22    pub value: String,
23}
24
25impl CustomFieldResponse {
26    /// Customer's response to a custom field
27    pub fn new(key: String, value: String) -> CustomFieldResponse {
28        CustomFieldResponse {
29            key,
30            value,
31        }
32    }
33}
34