pub struct PlatformConfig {
pub enabled: bool,
pub asset_strategy: Option<String>,
pub published: Option<bool>,
pub theme: Option<ThemeId>,
pub internal_link_target: Option<String>,
pub math_rendering: Option<String>,
pub math_delimiters: Option<String>,
pub extra: HashMap<String, Value>,
}Fields§
§enabled: bool§asset_strategy: Option<String>§published: Option<bool>Platform-specific published setting (layer 3 per [[RFC-0005:C-RESOLUTION-ORDER]])
theme: Option<ThemeId>Platform-specific theme (layer 3 in theme resolution chain)
internal_link_target: Option<String>Platform-specific internal link target (layer 3 in resolution chain)
math_rendering: Option<String>Math rendering strategy override (layer 3 per [[RFC-0005:C-RESOLUTION-ORDER]]) Per [[WI-2026-02-17-002]].
math_delimiters: Option<String>Math delimiter syntax override (layer 3 per [[RFC-0005:C-RESOLUTION-ORDER]]) Per [[WI-2026-02-17-002]].
extra: HashMap<String, Value>Implementations§
Source§impl PlatformConfig
impl PlatformConfig
Sourcepub fn get_str(&self, key: &str) -> Option<String>
pub fn get_str(&self, key: &str) -> Option<String>
Get a string value from extra config, expanding environment variables.
Supports shell-like variable substitution via the subst crate:
$VARor${VAR}— substitute from environment${VAR:default}— use default if VAR is unset
If expansion fails (e.g., undefined variable without default), returns the original unexpanded string.
Sourcepub fn get_str_raw(&self, key: &str) -> Option<&str>
pub fn get_str_raw(&self, key: &str) -> Option<&str>
Get a raw string value without environment variable expansion.
Sourcepub fn get_storage(&self) -> Option<StorageConfig>
pub fn get_storage(&self) -> Option<StorageConfig>
Get platform-specific storage config override
Trait Implementations§
Source§impl Clone for PlatformConfig
impl Clone for PlatformConfig
Source§fn clone(&self) -> PlatformConfig
fn clone(&self) -> PlatformConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more