pub struct Config {
pub version: u32,
pub port: u16,
pub bind: String,
pub auto_restart: bool,
}Expand description
Main configuration structure for opencode-cloud
Serialized to/from ~/.config/opencode-cloud/config.json
Fields§
§version: u32Config file version for migrations
port: u16Port for the opencode web UI (default: 8080)
bind: StringBind address (default: “localhost”) Use “localhost” for local-only access (secure default) Use “0.0.0.0” for network access (requires explicit opt-in)
auto_restart: boolAuto-restart service on crash (default: true)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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