typesense_rs/models/api_response.rs
1// Typesense API
2//
3// An open source search engine for building delightful search experiences.
4//
5// The version of the OpenAPI document: 27.0
6//
7// Generated by: https://openapi-generator.tech
8
9use serde::{Deserialize, Serialize};
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct ApiResponse {
15 #[serde(rename = "message")]
16 pub message: String,
17}
18
19impl ApiResponse {
20 pub fn new(message: String) -> ApiResponse {
21 ApiResponse { message }
22 }
23}