pub struct ConfigOptsServe {
pub address: Option<IpAddr>,
pub port: Option<u16>,
pub open: bool,
pub proxy_backend: Option<Uri>,
pub proxy_rewrite: Option<String>,
pub proxy_ws: bool,
pub proxy_insecure: bool,
pub no_autoreload: bool,
}Expand description
Config options for the serve system.
Fields§
§address: Option<IpAddr>The address to serve on [default: 127.0.0.1]
port: Option<u16>The port to serve on [default: 8080]
open: boolOpen a browser tab once the initial build is complete [default: false]
proxy_backend: Option<Uri>A URL to which requests will be proxied [default: None]
proxy_rewrite: Option<String>The URI on which to accept requests which are to be rewritten and proxied to backend [default: None]
proxy_ws: boolConfigure the proxy for handling WebSockets [default: false]
proxy_insecure: boolConfigure the proxy to accept insecure requests [default: false]
no_autoreload: boolDisable auto-reload of the web app [default: false]
Trait Implementations§
Source§impl Args for ConfigOptsServe
impl Args for ConfigOptsServe
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 ConfigOptsServe
impl Clone for ConfigOptsServe
Source§fn clone(&self) -> ConfigOptsServe
fn clone(&self) -> ConfigOptsServe
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 ConfigOptsServe
impl Debug for ConfigOptsServe
Source§impl Default for ConfigOptsServe
impl Default for ConfigOptsServe
Source§fn default() -> ConfigOptsServe
fn default() -> ConfigOptsServe
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigOptsServe
impl<'de> Deserialize<'de> for ConfigOptsServe
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
Source§impl FromArgMatches for ConfigOptsServe
impl FromArgMatches for ConfigOptsServe
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 ConfigOptsServe
impl RefUnwindSafe for ConfigOptsServe
impl Send for ConfigOptsServe
impl Sync for ConfigOptsServe
impl Unpin for ConfigOptsServe
impl UnwindSafe for ConfigOptsServe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more