pub struct ServerConfig {
pub host: String,
pub port: u16,
pub snapshot_path: Option<PathBuf>,
pub restore_from: Option<PathBuf>,
}Fields§
§host: String§port: u16§snapshot_path: Option<PathBuf>When set, the server mounts the /admin/snapshot/{save,load} routes
and wires them to this path. None means the admin surface is
disabled entirely — the default, so we never expose admin endpoints
on a network-reachable process unless the operator asks for it.
restore_from: Option<PathBuf>When Some, the server restores the graph from this path at boot.
Missing file at boot is treated as an empty graph (same as without
--restore-from). Independent of snapshot_path so operators can
restore from a read-only location and write back somewhere else.
Implementations§
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl Default for ServerConfig
impl Default for ServerConfig
Source§impl PartialEq for ServerConfig
impl PartialEq for ServerConfig
impl Eq for ServerConfig
impl StructuralPartialEq for ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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