windmill_api/models/
static_memory_transform.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StaticMemoryTransform {
17 #[serde(rename = "value")]
18 pub value: Box<models::MemoryConfig>,
19 #[serde(rename = "type")]
20 pub r#type: Type,
21}
22
23impl StaticMemoryTransform {
24 pub fn new(value: models::MemoryConfig, r#type: Type) -> StaticMemoryTransform {
26 StaticMemoryTransform {
27 value: Box::new(value),
28 r#type,
29 }
30 }
31}
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35 #[serde(rename = "static")]
36 Static,
37}
38
39impl Default for Type {
40 fn default() -> Type {
41 Self::Static
42 }
43}
44