pub struct MesofactStaticWorkload {
pub schema_version: SchemaVersion,
pub build: BuildConfig,
pub routes: PathBuf,
pub build_mode: BuildMode,
pub ssr_runtime: Option<WorkloadSpec>,
pub serve_bundle: Option<MesofactServeBundle>,
}Expand description
kind = "mesofact-static" payload — static-site build colocated with the
frontend it deploys.
The two-role model (R256-F7): a build/publish step plus an optional
SSR/SPA runtime companion. The build step is always transient (runs once,
publishes, exits). The companion is long-lived and only present when the
app has dynamic/server-rendered pages; pure static sites leave it None.
Fields§
§schema_version: SchemaVersionWire-format version. Always V1 today.
build: BuildConfigBuild command + output directory.
routes: PathBufPath (relative to the manifest) of the routes module the
mesofact-static reconciler reads to enumerate routes.
build_mode: BuildModeWhere the build command runs. Default: HostSide (mesofact-dev on the
host). Set to InContainer for cloud/HA where no host watcher is
present and CI-fidelity build environments are required.
ssr_runtime: Option<WorkloadSpec>Optional SSR/SPA runtime companion container.
None → pure static site; Caddy (or equivalent CDN) serves all
requests directly from the object store. This is the common case for
dev-yah today.
Some → the workload spec describes a long-lived container that
handles dynamic/SSR requests. Caddy routes static asset paths to
the object store and all other paths to this container. The companion
uses RestartPolicy::Always; the orchestrator (camp or yubaba)
ensures it stays up alongside the Caddy edge.
serve_bundle: Option<MesofactServeBundle>Serve-time reference to a published W272 bundle (R599-F4).
Some → the built app is deployed as a content-addressed bundle that
kamaji materializes from the bundle store (R599-F1) and serves via its
native backend, instead of (or in addition to) the build reconciler
pushing dist/ to the object-store/CDN. None → legacy
build-and-publish-only workload — kamaji rejects that form as yubaba’s
mesofact-static reconciler’s responsibility.
No skip_serializing_if: like ssr_runtime, this field is always
encoded so the postcard wire codec (non-self-describing, positional)
round-trips — skip_serializing_if would omit the byte on serialize
while decode still expects it. #[serde(default)] keeps every existing
mesofact-static TOML/JSON that predates this field parsing to None.
Trait Implementations§
Source§impl Clone for MesofactStaticWorkload
impl Clone for MesofactStaticWorkload
Source§fn clone(&self) -> MesofactStaticWorkload
fn clone(&self) -> MesofactStaticWorkload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MesofactStaticWorkload
impl Debug for MesofactStaticWorkload
Source§impl<'de> Deserialize<'de> for MesofactStaticWorkload
impl<'de> Deserialize<'de> for MesofactStaticWorkload
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>,
Source§impl PartialEq for MesofactStaticWorkload
impl PartialEq for MesofactStaticWorkload
Source§impl Serialize for MesofactStaticWorkload
impl Serialize for MesofactStaticWorkload
impl StructuralPartialEq for MesofactStaticWorkload
Source§impl TS for MesofactStaticWorkload
impl TS for MesofactStaticWorkload
Source§type WithoutGenerics = MesofactStaticWorkload
type WithoutGenerics = MesofactStaticWorkload
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = MesofactStaticWorkload
type OptionInnerType = MesofactStaticWorkload
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read more