pub struct AppConfig {
pub service_name: &'static str,
pub project: PathBuf,
pub projects: Vec<PathBuf>,
pub projects_root: Option<PathBuf>,
pub rpi_bin: PathBuf,
pub bind: String,
pub port: u16,
pub allowed_hosts: Option<Vec<String>>,
pub session_dir: Option<PathBuf>,
pub registry: PathBuf,
}Fields§
§service_name: &'static str§project: PathBuf§projects: Vec<PathBuf>Additional workspace roots explicitly made available to clients.
projects_root: Option<PathBuf>§rpi_bin: PathBuf§bind: String§port: u16§allowed_hosts: Option<Vec<String>>Optional Host allowlist; RPI_WEB_ALLOWED_HOSTS takes precedence.
session_dir: Option<PathBuf>Optional --session-dir forwarded to the native host.
registry: PathBufWhere the bridge remembers session ids across restarts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more