systemprompt_models/profile/services.rs
1//! Profile-level overrides for the services manifest tree.
2//!
3//! Copyright (c) systemprompt.io — Business Source License 1.1.
4//! See <https://systemprompt.io> for licensing details.
5
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize, schemars::JsonSchema)]
9#[serde(deny_unknown_fields)]
10pub struct ServicesProfileConfig {
11 #[serde(default)]
12 pub port_offset: u16,
13}
14
15impl ServicesProfileConfig {
16 #[must_use]
17 pub const fn is_identity(&self) -> bool {
18 self.port_offset == 0
19 }
20}