use std::net::IpAddr;
use crate::settings::settings_file;
#[derive(Debug, Clone)]
pub struct Http {
pub address: IpAddr,
pub port: u16,
pub public_url: url::Url,
pub api_token: String,
pub disable_openapi: bool,
}
impl From<settings_file::http::Http> for Http {
fn from(value: settings_file::http::Http) -> Self {
Self {
address: value.address,
port: value.port,
public_url: value.public_url,
api_token: value.api_token,
disable_openapi: value.disable_openapi,
}
}
}