game_news_response.rs•559 B
/*
* GameBrain API
*
* GameBrain API
*
* The version of the OpenAPI document: 1.0.1
* Contact: mail@gamebrain.co
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GameNewsResponse {
#[serde(rename = "news")]
pub news: Vec<models::GameNewsItem>,
}
impl GameNewsResponse {
pub fn new(news: Vec<models::GameNewsItem>) -> GameNewsResponse {
GameNewsResponse {
news,
}
}
}