metaculus/models/question_vote.rs
1/*
2 * Metaculus API
3 *
4 * Welcome to the unofficial Rust client for the Metaculus API
5 *
6 * The version of the OpenAPI document: 1.0
7 * Contact: Benjamin Manns <opensource@benmanns.com>
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct QuestionVote {
13 #[serde(rename = "value")]
14 pub value: crate::models::ValueEnum,
15}
16
17impl QuestionVote {
18 #[must_use]
19 pub fn new(value: crate::models::ValueEnum) -> QuestionVote {
20 QuestionVote { value }
21 }
22}