pub struct ConversionSummary {
pub files_converted: usize,
pub files_copied: usize,
pub files_skipped: usize,
pub warnings: Vec<ConversionWarning>,
}Expand description
Summary of conversion results
Fields§
§files_converted: usizeNumber of files successfully converted
files_copied: usizeNumber of files copied (non-template files)
files_skipped: usizeNumber of files skipped
warnings: Vec<ConversionWarning>All warnings generated during conversion
Implementations§
Source§impl ConversionSummary
impl ConversionSummary
Sourcepub fn add_warning(&mut self, warning: ConversionWarning)
pub fn add_warning(&mut self, warning: ConversionWarning)
Add a warning
Sourcepub fn warnings_by_severity(
&self,
) -> HashMap<WarningSeverity, Vec<&ConversionWarning>>
pub fn warnings_by_severity( &self, ) -> HashMap<WarningSeverity, Vec<&ConversionWarning>>
Get warnings grouped by severity
Sourcepub fn warnings_by_category(
&self,
) -> HashMap<WarningCategory, Vec<&ConversionWarning>>
pub fn warnings_by_category( &self, ) -> HashMap<WarningCategory, Vec<&ConversionWarning>>
Get warnings grouped by category
Sourcepub fn count_by_severity(&self, severity: WarningSeverity) -> usize
pub fn count_by_severity(&self, severity: WarningSeverity) -> usize
Get count of warnings by severity
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if there are any errors
Sourcepub fn has_unsupported(&self) -> bool
pub fn has_unsupported(&self) -> bool
Check if there are any unsupported features
Sourcepub fn success_message(&self) -> String
pub fn success_message(&self) -> String
Get a success message
Trait Implementations§
Source§impl Debug for ConversionSummary
impl Debug for ConversionSummary
Source§impl Default for ConversionSummary
impl Default for ConversionSummary
Source§fn default() -> ConversionSummary
fn default() -> ConversionSummary
Returns the “default value” for a type. Read more