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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
22pub struct Void {}
23
24impl Void {
25 /// The absence of any type. This is commonly used in APIs that don't return a body.
26 ///
27 /// Although "void" is generally used for a unit type that has only one value, this is interpreted as
28 /// the bottom type, which has no value. Most languages have a unit type, but few have a bottom type.
29 ///
30 /// See https://en.m.wikipedia.org/wiki/Unit_type and https://en.m.wikipedia.org/wiki/Bottom_type.
31 pub fn new() -> Void {
32 Void {}
33 }
34}