Skip to main content

build_boot_manifest_from_state

Function build_boot_manifest_from_state 

Source
pub fn build_boot_manifest_from_state<J, S>(
    state: &S,
    app_version: Option<&str>,
    git_sha: Option<&str>,
    cron_registry: Option<&CronRegistry<S>>,
) -> Result<AppManifest, BootManifestDeclarationError>
where J: JobRegistry<S>, S: AppState,
Expand description

Builds and validates an authoritative manifest from application state.

An empty declaration list becomes Some([]). Locally detectable invalid declarations are returned synchronously. Rejection of the Eyes server’s own origin requires server context and is reported asynchronously when sent.