allow construction by making data public

This commit is contained in:
Greg Johnston 2023-10-18 19:16:08 -04:00 committed by GitHub
parent 8994154b23
commit 33e166a462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ pub struct RouteDefinition {
/// The HTTP request methods this route is able to handle.
pub methods: &'static [Method],
/// A data loader function that will be called when this route is matched.
pub(crate) data: Option<Loader>,
pub data: Option<Loader>,
/// The route's preferred mode of static generation, if any
pub static_mode: Option<StaticMode>,
/// The data required to fill any dynamic segments in the path during static rendering.