laravel-rust-admin 0.1.1

Admin panel framework for Laravel for Rust: auto-generated CRUD tables, forms, actions, and dashboard widgets from your models.
Documentation
//! Configuration section for `laravel-rust-admin`.

use laravel::config::Section;

pub use crate::protocol::AccentColor;

/// Environment-backed defaults for the admin panel.
///
/// Consuming applications can override these via environment variables (`ADMIN_PATH`,
/// `ADMIN_BRAND`, `ADMIN_VITE_DEV_URL`) or through `AdminPanel::new().path(...).brand(...)`.
#[derive(Debug, Clone, Section)]
pub struct AdminConfig {
    /// Mount prefix for the admin panel (defaults to `"/admin"`).
    #[env("ADMIN_PATH", default = "/admin")]
    pub path: String,
    /// Display name shown in the sidebar header and page titles.
    #[env("ADMIN_BRAND", default = "Admin")]
    pub brand: String,
    /// Optional Vite dev server URL (e.g. `http://localhost:5173`) used while hacking on the UI.
    #[env("ADMIN_VITE_DEV_URL")]
    pub vite_dev_url: Option<String>,
}