pub enum PageThawPrefs {
    Include(Vec<String>),
    IncludeAll,
    Exclude(Vec<String>),
}
Expand description

The user’s preferences on page state thawing. Templates have three places they can fetch state from: the page state store (called active state), the frozen state, and the server. They’re typically prioritized in that order, but if thawing occurs later in an app, it may be desirable to override active state in favor of frozen state. These preferences allow setting an inclusion or exclusion list.

Variants

Include(Vec<String>)

Include the attached pages by their URLs (with no leading /). Pages listed here will prioritize frozen state over active state, allowing thawing to override the current state of the app.

IncludeAll

Includes all pages in the app, making frozen state always override state that’s already been initialized.

Exclude(Vec<String>)

Exludes the attached pages by their URLs (with no leading /). Pages listed here will prioritize active state over frozen state as usual, and any pages not listed here will prioritize frozen state. Exclude(Vec::new()) is equivalent to IncludeAll.

Implementations

Checks whether or not the given URl should prioritize frozen state over active state.

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.