pub struct PageSpec<'a> {
pub venture: &'a str,
pub title: &'a str,
pub theme_tokens: bool,
pub theme_css: Option<&'a str>,
pub turnstile: bool,
pub admin: bool,
}Expand description
What a full page needs around a fragment.
Fields§
§venture: &'a str§title: &'a str§theme_tokens: bool/ui/cf.css and /ui/cf.js relative to the API origin; the
venture’s own theme stylesheet, if configured, is linked after.
Link /ui/theme.css (the spec’s --cf-* tokens) after cf.css.
theme_css: Option<&'a str>§turnstile: bool§admin: boolRender the admin navigation (home link, log-out form).
Auto Trait Implementations§
impl<'a> Freeze for PageSpec<'a>
impl<'a> RefUnwindSafe for PageSpec<'a>
impl<'a> Send for PageSpec<'a>
impl<'a> Sync for PageSpec<'a>
impl<'a> Unpin for PageSpec<'a>
impl<'a> UnsafeUnpin for PageSpec<'a>
impl<'a> UnwindSafe for PageSpec<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more