queryweave_api/
features.rs1#[diagnostic::on_unimplemented(
14 message = "the `serde` integration needs `queryweave-api`'s `serde` feature",
15 label = "`queryweave-api` is built without its `serde` feature",
16 note = "enable it: `queryweave-api = {{ version = \"..\", features = [\"serde\"] }}`"
17)]
18pub trait Serde {}
19
20#[cfg(feature = "serde")]
21impl Serde for crate::SortDirectionDto {}
22
23#[diagnostic::on_unimplemented(
25 message = "the `utoipa` integration needs `queryweave-api`'s `utoipa` feature",
26 label = "`queryweave-api` is built without its `utoipa` feature",
27 note = "enable it: `queryweave-api = {{ version = \"..\", features = [\"utoipa\"] }}`"
28)]
29pub trait Utoipa {}
30
31#[cfg(feature = "utoipa")]
32impl Utoipa for crate::SortDirectionDto {}
33
34#[diagnostic::on_unimplemented(
36 message = "the `schemars` integration needs `queryweave-api`'s `schemars` feature",
37 label = "`queryweave-api` is built without its `schemars` feature",
38 note = "enable it: `queryweave-api = {{ version = \"..\", features = [\"schemars\"] }}`"
39)]
40pub trait Schemars {}
41
42#[cfg(feature = "schemars")]
43impl Schemars for crate::SortDirectionDto {}