Enum perseus::state::PageThawPrefs
source · 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.
In apps using internationalization, locales should not be provided here, they will be inferred.
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>)
Excludes 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
.
Trait Implementations§
source§impl Clone for PageThawPrefs
impl Clone for PageThawPrefs
source§fn clone(&self) -> PageThawPrefs
fn clone(&self) -> PageThawPrefs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more