pub fn rtc_serve(
        cli_build: ConfigOptsBuild, cli_watch: ConfigOptsWatch, cli_serve: ConfigOptsServe, config: Option<PathBuf>,
    ) -> Result<Arc<RtcServe>> {
        let base_layer = Self::file_and_env_layers(config)?;
        let build_layer = Self::cli_opts_layer_build(cli_build, base_layer);
        let watch_layer = Self::cli_opts_layer_watch(cli_watch, build_layer);
        let serve_layer = Self::cli_opts_layer_serve(cli_serve, watch_layer);
        let build_opts = serve_layer.build.unwrap_or_default();
        let watch_opts = serve_layer.watch.unwrap_or_default();
        let serve_opts = serve_layer.serve.unwrap_or_default();
        let tools_opts = serve_layer.tools.unwrap_or_default();
        let hooks_opts = serve_layer.hooks.unwrap_or_default();
        Ok(Arc::new(RtcServe::new(
            build_opts,
            watch_opts,
            serve_opts,
            tools_opts,
            hooks_opts,
            serve_layer.proxy,
        )?))
    }
/// Extract the runtime config for the serve system based on all config layers.
Extract the runtime config for the serve system based on all config layers.
Extract the runtime config for the serve system based on all config layers .
pub fn rtc_serve(
        cli_build: ConfigOptsBuild, cli_watch: ConfigOptsWatch, cli_serve: ConfigOptsServe, config: Option<PathBuf>,
    ) -> Result<Arc<RtcServe>> {
        let base_layer = Self::file_and_env_layers(config)?;
        let build_layer = Self::cli_opts_layer_build(cli_build, base_layer);
        let watch_layer = Self::cli_opts_layer_watch(cli_watch, build_layer);
        let serve_layer = Self::cli_opts_layer_serve(cli_serve, watch_layer);
        let build_opts = serve_layer.build.unwrap_or_default();
        let watch_opts = serve_layer.watch.unwrap_or_default();
        let serve_opts = serve_layer.serve.unwrap_or_default();
        let tools_opts = serve_layer.tools.unwrap_or_default();
        let hooks_opts = serve_layer.hooks.unwrap_or_default();
        Ok(Arc::new(RtcServe::new(
            build_opts,
            watch_opts,
            serve_opts,
            tools_opts,
            hooks_opts,
            serve_layer.proxy,
        )?))
    }
pub fn rtc_serve ( cli_build : ConfigOptsBuild , cli_watch : ConfigOptsWatch , cli_serve : ConfigOptsServe , config : Option < PathBuf > , ) -> Result < Arc < RtcServe > > { let base_layer = Self :: file_and_env_layers ( config ) ? ; let build_layer = Self :: cli_opts_layer_build ( cli_build , base_layer ) ; let watch_layer = Self :: cli_opts_layer_watch ( cli_watch , build_layer ) ; let serve_layer = Self :: cli_opts_layer_serve ( cli_serve , watch_layer ) ; let build_opts = serve_layer . build . unwrap_or_default ( ) ; let watch_opts = serve_layer . watch . unwrap_or_default ( ) ; let serve_opts = serve_layer . serve . unwrap_or_default ( ) ; let tools_opts = serve_layer . tools . unwrap_or_default ( ) ; let hooks_opts = serve_layer . hooks . unwrap_or_default ( ) ; Ok ( Arc :: new ( RtcServe :: new ( build_opts , watch_opts , serve_opts , tools_opts , hooks_opts , serve_layer . proxy , ) ? ) ) }
Extract the runtime config for the serve system based on all config layers.
Extract the runtime config for the serve system based on all config layers .
cli_build
ConfigOptsBuild
cli_watch
ConfigOptsWatch
cli_serve
ConfigOptsServe
config
Option<PathBuf>
cli_build
ConfigOptsBuild
cli_watch
ConfigOptsWatch
cli_serve
ConfigOptsServe
config
Option<PathBuf>