pub struct ServeWebArgs {
pub host: Option<String>,
pub socket_path: Option<String>,
pub port: u16,
pub connection_token: Option<String>,
pub connection_token_file: Option<String>,
pub without_connection_token: bool,
pub accept_server_license_terms: bool,
pub server_base_path: Option<String>,
pub server_data_dir: Option<String>,
pub user_data_dir: Option<String>,
pub extensions_dir: Option<String>,
}
Fields§
§host: Option<String>
Host to listen on, defaults to ‘localhost’
socket_path: Option<String>
§port: u16
Port to listen on. If 0 is passed a random free port is picked.
connection_token: Option<String>
A secret that must be included with all requests.
connection_token_file: Option<String>
A file containing a secret that must be included with all requests.
without_connection_token: bool
Run without a connection token. Only use this if the connection is secured by other means.
accept_server_license_terms: bool
If set, the user accepts the server license terms and the server will be started without a user prompt.
server_base_path: Option<String>
Specifies the path under which the web UI and the code server is provided.
server_data_dir: Option<String>
Specifies the directory that server data is kept in.
user_data_dir: Option<String>
Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code.
extensions_dir: Option<String>
Set the root path for extensions.
Trait Implementations§
Source§impl Args for ServeWebArgs
impl Args for ServeWebArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for ServeWebArgs
impl Clone for ServeWebArgs
Source§fn clone(&self) -> ServeWebArgs
fn clone(&self) -> ServeWebArgs
Returns a copy 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 ServeWebArgs
impl Debug for ServeWebArgs
Source§impl FromArgMatches for ServeWebArgs
impl FromArgMatches for ServeWebArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for ServeWebArgs
impl RefUnwindSafe for ServeWebArgs
impl Send for ServeWebArgs
impl Sync for ServeWebArgs
impl Unpin for ServeWebArgs
impl UnwindSafe for ServeWebArgs
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