fastcomments-sdk 3.0.1

Official FastComments Rust SDK (Typed API Client & Utilities)
Documentation
/*
 * fastcomments
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetVotesForUserResponse {
    #[serde(rename = "status")]
    pub status: models::ApiStatus,
    #[serde(rename = "appliedAuthorizedVotes")]
    pub applied_authorized_votes: Vec<models::PublicVote>,
    #[serde(rename = "appliedAnonymousVotes")]
    pub applied_anonymous_votes: Vec<models::PublicVote>,
    #[serde(rename = "pendingVotes")]
    pub pending_votes: Vec<models::PublicVote>,
}

impl GetVotesForUserResponse {
    pub fn new(status: models::ApiStatus, applied_authorized_votes: Vec<models::PublicVote>, applied_anonymous_votes: Vec<models::PublicVote>, pending_votes: Vec<models::PublicVote>) -> GetVotesForUserResponse {
        GetVotesForUserResponse {
            status,
            applied_authorized_votes,
            applied_anonymous_votes,
            pending_votes,
        }
    }
}