pub struct GetPageProps<'a, M: MutableStore, T: TranslationsManager> {
pub raw_path: &'a str,
pub locale: &'a str,
pub was_incremental_match: bool,
pub req: Request,
pub global_state: &'a Option<String>,
pub immutable_store: &'a ImmutableStore,
pub mutable_store: &'a M,
pub translations_manager: &'a T,
}
Expand description
The properties required to get data for a page.
Fields
raw_path: &'a str
The raw path (which must not contain the locale).
locale: &'a str
The locale to render for.
was_incremental_match: bool
Whether or not the page was matched on a template using incremental generation that didn’t prerender it with build paths (these use the mutable store).
req: Request
The request data.
global_state: &'a Option<String>
The stringified global state to use in the render process.
immutable_store: &'a ImmutableStore
An immutable store.
mutable_store: &'a M
A mutable store.
translations_manager: &'a T
A translations manager.
Trait Implementations
sourceimpl<'a, M: Debug + MutableStore, T: Debug + TranslationsManager> Debug for GetPageProps<'a, M, T>
impl<'a, M: Debug + MutableStore, T: Debug + TranslationsManager> Debug for GetPageProps<'a, M, T>
Auto Trait Implementations
impl<'a, M, T> !RefUnwindSafe for GetPageProps<'a, M, T>
impl<'a, M, T> Send for GetPageProps<'a, M, T>
impl<'a, M, T> Sync for GetPageProps<'a, M, T>
impl<'a, M, T> Unpin for GetPageProps<'a, M, T>
impl<'a, M, T> !UnwindSafe for GetPageProps<'a, M, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more