systemprompt_api/models/mod.rs
1//! HTTP server request/response models for the API entry point.
2//!
3//! Holds the bind-address configuration ([`ServerConfig`]) consumed when
4//! standing up the axum listener.
5
6#[derive(Debug, Clone)]
7pub struct ServerConfig {
8 pub host: String,
9 pub port: u16,
10}
11
12impl Default for ServerConfig {
13 fn default() -> Self {
14 Self {
15 host: "0.0.0.0".to_owned(),
16 port: 8080,
17 }
18 }
19}