rusttwald/models/
conversation_create_message_request.rs

1/*
2 * Mittwald API
3 *
4 * ## Introduction  This OpenAPI spec documents the mittwald API. It follows the [OpenAPI 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0.html).  ## Authentication  You will need an API token to access the API. You can obtain one by logging into the [mStudio](https://studio.mittwald.de) and navigating to the [\"API Tokens\" section in the user menu](https://studio.mittwald.de/app/profile/api-tokens).  When making requests to the API, you can authenticate by passing your API token in the `X-Access-Token` header or as a bearer token.  ## Rate Limiting  Please note that usage of the API is rate-limited to prevent abuse. You can inspect the rate limiting for your current user by observing the `X-Ratelimit-*` headers included in each response.  ## mStudio  A main consumer of the mittwald API is the management interface for our customers, the [mStudio](https://studio.mittwald.de).  ## Contact and support  For support, please use the [mStudio support area](https://studio.mittwald.de/app/support/conversations) or drop us an email at [support@mittwald.de](mailto:support@mittwald.de).  For security issues, please report to [security@mittwald.de](mailto:security@mittwald.de). 
5 *
6 * The version of the OpenAPI document: 2.0
7 * 
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 ConversationCreateMessageRequest {
16    #[serde(rename = "fileIds", skip_serializing_if = "Option::is_none")]
17    pub file_ids: Option<Vec<uuid::Uuid>>,
18    #[serde(rename = "messageContent", skip_serializing_if = "Option::is_none")]
19    pub message_content: Option<String>,
20}
21
22impl ConversationCreateMessageRequest {
23    pub fn new() -> ConversationCreateMessageRequest {
24        ConversationCreateMessageRequest {
25            file_ids: None,
26            message_content: None,
27        }
28    }
29}
30