geoengine_api_client/models/
computation_quota.rs1use 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