pub struct ServerOptions {
pub host: String,
pub port: u16,
pub open_browser: bool,
}Expand description
Where and how to serve.
Fields§
§host: StringInterface to bind. Defaults to 127.0.0.1: token/cost data is private.
port: u16§open_browser: boolOpen the dashboard in the default browser once the server is listening.
Trait Implementations§
Source§impl Clone for ServerOptions
impl Clone for ServerOptions
Source§impl Debug for ServerOptions
impl Debug for ServerOptions
Auto Trait Implementations§
impl Freeze for ServerOptions
impl RefUnwindSafe for ServerOptions
impl Send for ServerOptions
impl Sync for ServerOptions
impl Unpin for ServerOptions
impl UnsafeUnpin for ServerOptions
impl UnwindSafe for ServerOptions
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