openapi_github/models/
actions_cache_usage_by_repository.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/// ActionsCacheUsageByRepository : GitHub Actions Cache Usage by repository.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ActionsCacheUsageByRepository {
17    /// The repository owner and name for the cache usage being shown.
18    #[serde(rename = "full_name")]
19    pub full_name: String,
20    /// The sum of the size in bytes of all the active cache items in the repository.
21    #[serde(rename = "active_caches_size_in_bytes")]
22    pub active_caches_size_in_bytes: i32,
23    /// The number of active caches in the repository.
24    #[serde(rename = "active_caches_count")]
25    pub active_caches_count: i32,
26}
27
28impl ActionsCacheUsageByRepository {
29    /// GitHub Actions Cache Usage by repository.
30    pub fn new(full_name: String, active_caches_size_in_bytes: i32, active_caches_count: i32) -> ActionsCacheUsageByRepository {
31        ActionsCacheUsageByRepository {
32            full_name,
33            active_caches_size_in_bytes,
34            active_caches_count,
35        }
36    }
37}
38