1 2 3 4 5 6 7 8 9 10 11 12
use teo_teon::Value; use crate::request::Ctx; pub trait ExtractFromRequestCtx { fn extract(ctx: &Ctx) -> Self; } impl ExtractFromRequestCtx for Value { fn extract(ctx: &Ctx) -> Self { ctx.body().clone() } }