1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * API
 *
 * ## Welcome  This is a place to put general notes and extra information, for internal use.  To get started designing/documenting this API, select a version on the left. # Title No Description
 *
 * The version of the OpenAPI document: 3
 *
 * Generated by: https://openapi-generator.tech
 */

#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ValueBody {
    /// This is the value of the rating you want to submit. The value is expected to be between 0.5 and 10.0.
    #[serde(rename = "value")]
    pub value: f32,
}

impl ValueBody {
    pub fn new(value: f32) -> ValueBody {
        ValueBody { value }
    }
}