pub struct PublishOptions {
pub single_file: bool,
pub title: Option<String>,
pub audience: Option<String>,
pub force: bool,
pub copy_attachments: bool,
pub base_url: Option<String>,
pub generate_seo: bool,
pub generate_feeds: bool,
}Expand description
Options for publishing.
Fields§
§single_file: boolOutput as a single HTML file instead of multiple files
title: Option<String>Site title (defaults to workspace title)
audience: Option<String>Include audience filtering
force: boolOverwrite existing destination
copy_attachments: boolCopy referenced attachment files to the output directory
base_url: Option<String>Base URL for sitemap, canonical URLs, og tags, and feeds.
generate_seo: boolGenerate sitemap.xml, robots.txt, and SEO meta tags (default true).
generate_feeds: boolGenerate feed.xml (Atom) and rss.xml (RSS) feeds (default true).
Trait Implementations§
Source§impl Clone for PublishOptions
impl Clone for PublishOptions
Source§fn clone(&self) -> PublishOptions
fn clone(&self) -> PublishOptions
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 PublishOptions
impl Debug for PublishOptions
Auto Trait Implementations§
impl Freeze for PublishOptions
impl RefUnwindSafe for PublishOptions
impl Send for PublishOptions
impl Sync for PublishOptions
impl Unpin for PublishOptions
impl UnsafeUnpin for PublishOptions
impl UnwindSafe for PublishOptions
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