Skip to main content

geoengine_api_client/models/
computation_quota.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct ComputationQuota {
15    #[serde(rename = "computationId")]
16    pub computation_id: uuid::Uuid,
17    #[serde(rename = "count")]
18    pub count: i64,
19    #[serde(rename = "timestamp")]
20    pub timestamp: String,
21    #[serde(rename = "workflowId")]
22    pub workflow_id: uuid::Uuid,
23}
24
25impl ComputationQuota {
26    pub fn new(computation_id: uuid::Uuid, count: i64, timestamp: String, workflow_id: uuid::Uuid) -> ComputationQuota {
27        ComputationQuota {
28            computation_id,
29            count,
30            timestamp,
31            workflow_id,
32        }
33    }
34}
35