mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-03-26 06:15:29 +01:00
17 lines
347 B
Rust
17 lines
347 B
Rust
|
|
use tera::Context;
|
|
|
|
use crate::mycelium::MycFormat;
|
|
|
|
pub trait MycQuerySettings<F>
|
|
where F: MycFormat {
|
|
|
|
/// Called before rendering a template to initalize it with
|
|
/// values that come from the query itself.
|
|
fn initalize_template_context(&self, context: &mut Context);
|
|
|
|
/// Returns the requested output format
|
|
fn get_format(&self) -> F;
|
|
|
|
}
|