static_authz_plugin/config.rs
1//! Configuration for the static `AuthZ` resolver plugin.
2
3use serde::Deserialize;
4
5/// Plugin configuration.
6#[derive(Debug, Clone, Deserialize)]
7#[serde(default, deny_unknown_fields)]
8pub struct StaticAuthZPluginConfig {
9 /// Vendor name for GTS instance registration.
10 pub vendor: String,
11
12 /// Plugin priority (lower = higher priority).
13 pub priority: i16,
14}
15
16impl Default for StaticAuthZPluginConfig {
17 fn default() -> Self {
18 Self {
19 vendor: "hyperspot".to_owned(),
20 priority: 100,
21 }
22 }
23}