openapi_github/models/
actions_cache_list.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ActionsCacheList : Repository actions caches
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ActionsCacheList {
17    /// Total number of caches
18    #[serde(rename = "total_count")]
19    pub total_count: i32,
20    /// Array of caches
21    #[serde(rename = "actions_caches")]
22    pub actions_caches: Vec<models::ActionsCacheListActionsCachesInner>,
23}
24
25impl ActionsCacheList {
26    /// Repository actions caches
27    pub fn new(total_count: i32, actions_caches: Vec<models::ActionsCacheListActionsCachesInner>) -> ActionsCacheList {
28        ActionsCacheList {
29            total_count,
30            actions_caches,
31        }
32    }
33}
34