opensearch_client/common/void.rs
1/*
2 * opensearch-client
3 *
4 * Rust Client for OpenSearch
5 *
6 * The version of the OpenAPI document: 3.1.0
7 * Contact: alberto.paro@gmail.com
8 * Generated by Paro OpenAPI Generator
9 */
10
11use serde::{Deserialize, Serialize};
12
13/// Void
14/// The absence of any type. This is commonly used in APIs that don't return a body.
15///
16/// Although "void" is generally used for a unit type that has only one value, this is interpreted as
17/// the bottom type, which has no value. Most languages have a unit type, but few have a bottom type.
18///
19/// See https://en.m.wikipedia.org/wiki/Unit_type and https://en.m.wikipedia.org/wiki/Bottom_type.
20
21
22#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
23pub struct Void {
24}
25
26impl Void {
27 /// The absence of any type. This is commonly used in APIs that don't return a body.
28 ///
29 /// Although "void" is generally used for a unit type that has only one value, this is interpreted as
30 /// the bottom type, which has no value. Most languages have a unit type, but few have a bottom type.
31 ///
32 /// See https://en.m.wikipedia.org/wiki/Unit_type and https://en.m.wikipedia.org/wiki/Bottom_type.
33 pub fn new() -> Void {
34 Void {
35 }
36 }
37}