pub struct ConfigOpts {
pub build: Option<ConfigOptsBuild>,
pub watch: Option<ConfigOptsWatch>,
pub serve: Option<ConfigOptsServe>,
pub clean: Option<ConfigOptsClean>,
pub tools: Option<ConfigOptsTools>,
pub proxy: Option<Vec<ConfigOptsProxy>>,
pub hooks: Option<Vec<ConfigOptsHook>>,
}Expand description
A model of all potential configuration options for the Trunk CLI system.
Fields§
§build: Option<ConfigOptsBuild>§watch: Option<ConfigOptsWatch>§serve: Option<ConfigOptsServe>§clean: Option<ConfigOptsClean>§tools: Option<ConfigOptsTools>§proxy: Option<Vec<ConfigOptsProxy>>§hooks: Option<Vec<ConfigOptsHook>>Implementations§
Source§impl ConfigOpts
impl ConfigOpts
Sourcepub fn rtc_build(
cli_build: ConfigOptsBuild,
config: Option<PathBuf>,
) -> Result<Arc<RtcBuild>>
pub fn rtc_build( cli_build: ConfigOptsBuild, config: Option<PathBuf>, ) -> Result<Arc<RtcBuild>>
Extract the runtime config for the build system based on all config layers.
Sourcepub fn rtc_watch(
cli_build: ConfigOptsBuild,
cli_watch: ConfigOptsWatch,
config: Option<PathBuf>,
) -> Result<Arc<RtcWatch>>
pub fn rtc_watch( cli_build: ConfigOptsBuild, cli_watch: ConfigOptsWatch, config: Option<PathBuf>, ) -> Result<Arc<RtcWatch>>
Extract the runtime config for the watch system based on all config layers.
Sourcepub fn rtc_serve(
cli_build: ConfigOptsBuild,
cli_watch: ConfigOptsWatch,
cli_serve: ConfigOptsServe,
config: Option<PathBuf>,
) -> Result<Arc<RtcServe>>
pub fn rtc_serve( cli_build: ConfigOptsBuild, cli_watch: ConfigOptsWatch, cli_serve: ConfigOptsServe, config: Option<PathBuf>, ) -> Result<Arc<RtcServe>>
Extract the runtime config for the serve system based on all config layers.
Trait Implementations§
Source§impl Clone for ConfigOpts
impl Clone for ConfigOpts
Source§fn clone(&self) -> ConfigOpts
fn clone(&self) -> ConfigOpts
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 ConfigOpts
impl Debug for ConfigOpts
Source§impl Default for ConfigOpts
impl Default for ConfigOpts
Source§fn default() -> ConfigOpts
fn default() -> ConfigOpts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigOpts
impl<'de> Deserialize<'de> for ConfigOpts
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
Auto Trait Implementations§
impl !Freeze for ConfigOpts
impl RefUnwindSafe for ConfigOpts
impl Send for ConfigOpts
impl Sync for ConfigOpts
impl Unpin for ConfigOpts
impl UnwindSafe for ConfigOpts
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