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