pub struct PageOpts {
pub destination: Option<String>,
pub destination_directory: Option<String>,
pub site_directory: Option<String>,
pub source: Option<String>,
pub source_directory: Option<String>,
pub searchpaths: Option<Vec<String>>,
pub validate: bool,
pub nocache: bool,
}Expand description
The serializable subset of PostDocumentOptions a worker needs to
reconstruct the page parse — ALL of its fields, since even destination
(later overridden per page) feeds the site-directory fallback inside
PostDocument::new.
Fields§
§destination: Option<String>§destination_directory: Option<String>§site_directory: Option<String>§source: Option<String>§source_directory: Option<String>§searchpaths: Option<Vec<String>>§validate: bool§nocache: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for PageOpts
impl<'de> Deserialize<'de> for PageOpts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PostDocumentOptions> for PageOpts
impl From<&PostDocumentOptions> for PageOpts
Source§fn from(o: &PostDocumentOptions) -> Self
fn from(o: &PostDocumentOptions) -> Self
Converts to this type from the input type.
Source§impl From<PageOpts> for PostDocumentOptions
impl From<PageOpts> for PostDocumentOptions
Auto Trait Implementations§
impl Freeze for PageOpts
impl RefUnwindSafe for PageOpts
impl Send for PageOpts
impl Sync for PageOpts
impl Unpin for PageOpts
impl UnsafeUnpin for PageOpts
impl UnwindSafe for PageOpts
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