pub struct WizardConfig {
pub include_closed: bool,
pub include_history: bool,
pub title: Option<String>,
pub subtitle: Option<String>,
pub deploy_target: Option<DeployTarget>,
pub output_path: Option<PathBuf>,
pub github_repo: Option<String>,
pub github_private: bool,
pub github_description: Option<String>,
pub cloudflare_project: Option<String>,
pub cloudflare_branch: Option<String>,
}Expand description
Persistent wizard configuration, saved between runs.
Fields§
§include_closed: boolInclude closed issues in export.
include_history: boolInclude git history for time-travel views.
title: Option<String>Custom title for the exported site.
subtitle: Option<String>Subtitle for the exported site.
deploy_target: Option<DeployTarget>Deployment target.
output_path: Option<PathBuf>Output directory for the export bundle.
github_repo: Option<String>GitHub repo name (owner/repo format).
github_private: boolWhether to create a private GitHub repo.
github_description: Option<String>GitHub repo description.
cloudflare_project: Option<String>Cloudflare Pages project name.
cloudflare_branch: Option<String>Cloudflare Pages branch.
Implementations§
Source§impl WizardConfig
impl WizardConfig
Sourcepub fn validate_for_export(&self) -> Result<()>
pub fn validate_for_export(&self) -> Result<()>
Validate the config for completeness before export.
Sourcepub fn validate_for_deploy(&self) -> Result<()>
pub fn validate_for_deploy(&self) -> Result<()>
Validate the config for completeness before deployment.
Sourcepub fn clear_target_config(&mut self)
pub fn clear_target_config(&mut self)
Clear target-specific fields when switching deploy target.
Trait Implementations§
Source§impl Clone for WizardConfig
impl Clone for WizardConfig
Source§fn clone(&self) -> WizardConfig
fn clone(&self) -> WizardConfig
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 WizardConfig
impl Debug for WizardConfig
Source§impl Default for WizardConfig
impl Default for WizardConfig
Source§impl<'de> Deserialize<'de> for WizardConfig
impl<'de> Deserialize<'de> for WizardConfig
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
Auto Trait Implementations§
impl Freeze for WizardConfig
impl RefUnwindSafe for WizardConfig
impl Send for WizardConfig
impl Sync for WizardConfig
impl Unpin for WizardConfig
impl UnsafeUnpin for WizardConfig
impl UnwindSafe for WizardConfig
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