Skip to main content

windmill_api/models/
memory_off.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.626.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// MemoryOff : No conversation memory/context
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct MemoryOff {
17    #[serde(rename = "kind")]
18    pub kind: Kind,
19}
20
21impl MemoryOff {
22    /// No conversation memory/context
23    pub fn new(kind: Kind) -> MemoryOff {
24        MemoryOff {
25            kind,
26        }
27    }
28}
29/// 
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum Kind {
32    #[serde(rename = "off")]
33    Off,
34}
35
36impl Default for Kind {
37    fn default() -> Kind {
38        Self::Off
39    }
40}
41