axum/axum-macros/tests/from_request/pass
David Pedersen 64960bb19c
Type safe state inheritance (#1532)
* Make state type safe

* fix examples

* remove unnecessary `#[track_caller]`s

* Router::into_service -> Router::with_state

* fixup docs

* macro docs

* add missing docs

* fix examples

* format

* changelog

* Update trybuild tests

* Make sure fallbacks are still inherited for opaque services (#1540)

* Document nesting routers with different state

* fix leftover conflicts
2022-11-18 11:02:58 +00:00
..
container.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
container_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
empty_named.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
empty_named_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
empty_tuple.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
empty_tuple_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
enum_via.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
enum_via_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
named.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
named_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
named_via.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
named_via_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
override_rejection.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
override_rejection_non_generic.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
override_rejection_non_generic_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
override_rejection_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
override_rejection_with_via_on_enum.rs Support using a different rejection for #[derive(FromRequest)] (#1256) 2022-08-12 16:05:27 +00:00
override_rejection_with_via_on_enum_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
override_rejection_with_via_on_struct.rs Support using a different rejection for #[derive(FromRequest)] (#1256) 2022-08-12 16:05:27 +00:00
override_rejection_with_via_on_struct_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
state_cookie.rs Support State with #[derive(FromRequest[Parts])] (#1391) 2022-09-23 23:50:50 +02:00
state_enum_via.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
state_enum_via_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
state_explicit.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
state_explicit_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
state_field_explicit.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
state_field_infer.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
state_infer.rs Support State with #[derive(FromRequest[Parts])] (#1391) 2022-09-23 23:50:50 +02:00
state_infer_multiple.rs Support State with #[derive(FromRequest[Parts])] (#1391) 2022-09-23 23:50:50 +02:00
state_infer_parts.rs Support State with #[derive(FromRequest[Parts])] (#1391) 2022-09-23 23:50:50 +02:00
state_via.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
state_via_infer.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
state_via_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
state_with_rejection.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
tuple.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
tuple_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
tuple_same_type_twice.rs Only allow last extractor to mutate the request (#1272) 2022-08-22 12:23:20 +02:00
tuple_same_type_twice_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
tuple_same_type_twice_via.rs Only allow last extractor to mutate the request (#1272) 2022-08-22 12:23:20 +02:00
tuple_same_type_twice_via_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
tuple_via.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
tuple_via_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
unit.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
unit_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00