systemprompt-provider-contracts 0.32.2

Provider trait contracts for systemprompt.io AI governance infrastructure. LlmProvider, ToolProvider, JobContext and friends — swap Anthropic, OpenAI, Gemini, and local models at profile level.
Documentation
//! Layout dimensions: header height, sidebar widths, content max-width.
//!
//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct LayoutConfig {
    #[serde(rename = "headerHeight")]
    pub header_height: String,
    #[serde(rename = "sidebarLeft")]
    pub sidebar_left: SidebarConfig,
    #[serde(rename = "sidebarRight")]
    pub sidebar_right: SidebarConfig,
    #[serde(rename = "navHeight")]
    pub nav_height: String,
    #[serde(rename = "contentMaxWidth")]
    pub content_max_width: String,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SidebarConfig {
    pub width: String,
    #[serde(rename = "minWidth")]
    pub min_width: String,
    #[serde(rename = "maxWidth")]
    pub max_width: String,
}