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 * The version of the OpenAPI document: 0.9.0
7 * Contact: dev@geoengine.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ComputationQuota {
16    #[serde(rename = "computationId")]
17    pub computation_id: uuid::Uuid,
18    #[serde(rename = "count")]
19    pub count: i64,
20    #[serde(rename = "timestamp")]
21    pub timestamp: String,
22    #[serde(rename = "workflowId")]
23    pub workflow_id: uuid::Uuid,
24}
25
26impl ComputationQuota {
27    pub fn new(computation_id: uuid::Uuid, count: i64, timestamp: String, workflow_id: uuid::Uuid) -> ComputationQuota {
28        ComputationQuota {
29            computation_id,
30            count,
31            timestamp,
32            workflow_id,
33        }
34    }
35}
36