use std::fmt::Debug; use std::marker::PhantomData; use salvia::{query, QueryContext, Stashable}; struct A(PhantomData); impl A where T: Stashable + Debug { #[query] async fn some(_cx: &QueryContext) -> T { todo!() } } fn main() {}