Struct perseus_cli::parse::ServeOpts [−][src]
pub struct ServeOpts {
pub no_run: bool,
pub no_build: bool,
pub release: bool,
pub standalone: bool,
pub integration: Integration,
pub watch: bool,
}Expand description
Serves your app (set the $HOST and $PORT environment variables to change the location it’s served at)
Fields
no_run: boolDon’t run the final binary, but print its location instead as the last line of output
no_build: boolOnly build the server, and use the results of a previous perseus build
release: boolBuild and serve for production
standalone: boolMake the final binary standalone (this is used in perseus deploy only, don’t manually invoke it unless you have a good reason!)
integration: IntegrationThe server integration to use
watch: boolWatch the files in your working directory for changes (exluding target/ and .perseus/)
Trait Implementations
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
impl RefUnwindSafe for ServeOpts
impl UnwindSafe for ServeOpts
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
