()
| 634 | E: ToSchema<'s>, |
| 635 | { |
| 636 | fn schema() -> (&'static str, openapi::RefOr<openapi::Schema>) { |
| 637 | ( |
| 638 | "Interval", |
| 639 | openapi::Schema::Object( |
| 640 | openapi::ObjectBuilder::new() |
| 641 | .property("start", openapi::Ref::from_schema_name(S::schema().0)) |
| 642 | .required("start") |
| 643 | .property("end", openapi::Ref::from_schema_name(E::schema().0)) |
| 644 | .required("end") |
| 645 | .build(), |
| 646 | ) |
| 647 | .into(), |
| 648 | ) |
| 649 | } |
| 650 | } |