use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ComputationQuota {
#[serde(rename = "computationId")]
pub computation_id: uuid::Uuid,
#[serde(rename = "count")]
pub count: i64,
#[serde(rename = "timestamp")]
pub timestamp: String,
#[serde(rename = "workflowId")]
pub workflow_id: uuid::Uuid,
}
impl ComputationQuota {
pub fn new(computation_id: uuid::Uuid, count: i64, timestamp: String, workflow_id: uuid::Uuid) -> ComputationQuota {
ComputationQuota {
computation_id,
count,
timestamp,
workflow_id,
}
}
}