#[allow(unused_imports)]
use progenitor_client::{encode_path, RequestBuilderExt};
pub use progenitor_client::{ByteStream, Error, ResponseValue};
#[allow(unused_imports)]
use reqwest::header::{HeaderMap, HeaderValue};
pub mod types {
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use std::convert::TryFrom;
///BodyWithDefaults
///
/// JSON schema
///
/// ```json
///{
/// "type": "object",
/// "required": [
/// "s"
/// ],
/// "properties": {
/// "forty-two": {
/// "default": 42,
/// "type": "integer",
/// "format": "uint32",
/// "minimum": 0.0
/// },
/// "s": {
/// "type": "string"
/// },
/// "something": {
/// "default": true,
/// "type": [
/// "boolean",
/// "null"
/// ]
/// },
/// "yes": {
/// "default": false,
/// "type": "boolean"
/// }
/// }
///}
/// ```
///
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct BodyWithDefaults {
#[serde(rename = "forty-two", default = "defaults::default_u64::")]
pub forty_two: u32,
pub s: String,
#[serde(default = "defaults::body_with_defaults_something")]
pub something: Option,
#[serde(default)]
pub yes: bool,
}
impl From<&BodyWithDefaults> for BodyWithDefaults {
fn from(value: &BodyWithDefaults) -> Self {
value.clone()
}
}
impl BodyWithDefaults {
pub fn builder() -> builder::BodyWithDefaults {
Default::default()
}
}
///Error information from a response.
///
/// JSON schema
///
/// ```json
///{
/// "description": "Error information from a response.",
/// "type": "object",
/// "required": [
/// "message",
/// "request_id"
/// ],
/// "properties": {
/// "error_code": {
/// "type": "string"
/// },
/// "message": {
/// "type": "string"
/// },
/// "request_id": {
/// "type": "string"
/// }
/// }
///}
/// ```
///
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Error {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub error_code: Option,
pub message: String,
pub request_id: String,
}
impl From<&Error> for Error {
fn from(value: &Error) -> Self {
value.clone()
}
}
impl Error {
pub fn builder() -> builder::Error {
Default::default()
}
}
pub mod builder {
#[derive(Clone, Debug)]
pub struct BodyWithDefaults {
forty_two: Result,
s: Result,
something: Result