pub struct PageOptions {Show 13 fields
pub title: String,
pub description: String,
pub head: String,
pub lang: String,
pub site_url: String,
pub og_image: String,
pub og_type: String,
pub json_ld: String,
pub canonical: Option<String>,
pub pwa: Option<PwaOptions>,
pub loader_src: String,
pub runtime_src: String,
pub stylesheet: Option<String>,
/* private fields */
}Expand description
Configuration for full-page rendering.
Fields§
§title: String§description: String§head: String§lang: String§site_url: StringPublic site origin, e.g. https://resuma-docs.fly.dev (no trailing slash).
og_image: StringOpen Graph image path or absolute URL.
og_type: String§json_ld: StringOptional JSON-LD <script> inner JSON (not HTML-escaped).
canonical: Option<String>Override canonical URL (absolute). Defaults to site_url + path.
pwa: Option<PwaOptions>Progressive Web App options (manifest, service worker registration).
loader_src: StringClient bootstrap script. Defaults to /_resuma/loader.js.
runtime_src: StringLegacy alias for loader_src when set explicitly.
stylesheet: Option<String>Trait Implementations§
Source§impl Clone for PageOptions
impl Clone for PageOptions
Source§fn clone(&self) -> PageOptions
fn clone(&self) -> PageOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageOptions
impl Debug for PageOptions
Source§impl Default for PageOptions
impl Default for PageOptions
Source§fn default() -> PageOptions
fn default() -> PageOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PageOptions
impl RefUnwindSafe for PageOptions
impl Send for PageOptions
impl Sync for PageOptions
impl Unpin for PageOptions
impl UnsafeUnpin for PageOptions
impl UnwindSafe for PageOptions
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