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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.