Skip to main content

windmill_api/models/
flow_conversation_message_attachments_inner.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.817.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct FlowConversationMessageAttachmentsInner {
16    /// The flow input that held the file
17    #[serde(rename = "input")]
18    pub input: String,
19    /// The file's key in object storage
20    #[serde(rename = "s3")]
21    pub s3: String,
22    /// The secondary storage holding the file, absent for the primary one
23    #[serde(rename = "storage", skip_serializing_if = "Option::is_none")]
24    pub storage: Option<String>,
25    #[serde(rename = "filename", skip_serializing_if = "Option::is_none")]
26    pub filename: Option<String>,
27}
28
29impl FlowConversationMessageAttachmentsInner {
30    pub fn new(input: String, s3: String) -> FlowConversationMessageAttachmentsInner {
31        FlowConversationMessageAttachmentsInner {
32            input,
33            s3,
34            storage: None,
35            filename: None,
36        }
37    }
38}
39