credence_lib/render/preparer.rs
1use super::context::*;
2
3use {axum::http::*, std::result::Result};
4
5//
6// RenderPreparer
7//
8
9/// [RenderedPage](super::RenderedPage) preparer.
10#[allow(async_fn_in_trait)]
11pub trait RenderPreparer {
12 /// Prepare.
13 async fn prepare<'own>(&self, context: &mut RenderContext<'own>) -> Result<(), StatusCode>;
14}