#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct StartupModel {
pub atlas_text: String,
pub atlas_budget_used: usize,
pub skeleton: String,
pub surface_text: String,
pub important_text: String,
pub surface_render: scc_core::SurfaceRenderResult,
pub coverage: Vec<String>,
pub omissions: Vec<String>,
pub artifact: scc_core::ContextArtifact,
}
impl StartupModel {
pub fn from_context(
ctx: scc_context::startup::StartupContext,
) -> Self {
StartupModel {
atlas_text: ctx.atlas,
atlas_budget_used: ctx.atlas_budget_used,
skeleton: ctx.skeleton,
surface_text: ctx.surface,
important_text: ctx.important,
surface_render: ctx.surface_render,
coverage: ctx.coverage,
omissions: ctx.omissions,
artifact: ctx.artifact,
}
}
}