pub struct PageConfig {
pub source_path: String,
pub title: Option<String>,
pub canonical_url: Option<String>,
pub description: Option<String>,
pub lang: Option<String>,
}Expand description
Configuration for full-page HTML rendering with SurfDoc discovery metadata.
Fields§
§source_path: StringPath to the original .surf source file (served alongside the built site).
Used in <link rel="alternate"> and the HTML comment.
title: Option<String>Page title. Falls back to front matter title, then “SurfDoc”.
canonical_url: Option<String>Optional canonical URL for <link rel="canonical">.
description: Option<String>Optional meta description.
lang: Option<String>Optional language code (default: “en”).
Trait Implementations§
Source§impl Clone for PageConfig
impl Clone for PageConfig
Source§fn clone(&self) -> PageConfig
fn clone(&self) -> PageConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 PageConfig
impl Debug for PageConfig
Auto Trait Implementations§
impl Freeze for PageConfig
impl RefUnwindSafe for PageConfig
impl Send for PageConfig
impl Sync for PageConfig
impl Unpin for PageConfig
impl UnwindSafe for PageConfig
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