use serde::{Deserialize, Serialize};
use serde_json::Value as JsonValue;
use utoipa::ToSchema;
#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize, ToSchema)]
#[serde(default)]
pub struct HttpOutputConfig {
pub backpressure: bool,
}
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize, ToSchema)]
pub struct HttpInputConfig {
pub name: String,
}
#[derive(Deserialize, ToSchema)]
pub struct Chunk {
pub sequence_number: u64,
pub bin_data: Option<Vec<u8>>,
pub text_data: Option<String>,
#[schema(value_type = Option<Object>)]
pub json_data: Option<JsonValue>,
}
pub const SERVER_PORT_FILE: &str = "port";