/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetTopHubScripts200ResponseAsksInner {
    #[serde(rename = "id")]
    pub id: f64,
    #[serde(rename = "ask_id")]
    pub ask_id: f64,
    #[serde(rename = "summary")]
    pub summary: String,
    #[serde(rename = "app")]
    pub app: String,
    #[serde(rename = "version_id")]
    pub version_id: f64,
    #[serde(rename = "kind")]
    pub kind: models::HubScriptKind,
    #[serde(rename = "votes")]
    pub votes: f64,
    #[serde(rename = "views")]
    pub views: f64,
}

impl GetTopHubScripts200ResponseAsksInner {
    pub fn new(id: f64, ask_id: f64, summary: String, app: String, version_id: f64, kind: models::HubScriptKind, votes: f64, views: f64) -> GetTopHubScripts200ResponseAsksInner {
        GetTopHubScripts200ResponseAsksInner {
            id,
            ask_id,
            summary,
            app,
            version_id,
            kind,
            votes,
            views,
        }
    }
}

