pub struct GenerationResult {
pub files: Vec<GeneratedFile>,
pub validation: ValidationResult,
pub review: Option<ReviewResult>,
pub conflicts: Vec<FileConflictInfo>,
pub stats: GenerationStats,
}Expand description
Complete result of code generation
Fields§
§files: Vec<GeneratedFile>Generated files
validation: ValidationResultValidation results
review: Option<ReviewResult>Review results (optional)
conflicts: Vec<FileConflictInfo>Detected conflicts
stats: GenerationStatsGeneration statistics
Implementations§
Source§impl GenerationResult
impl GenerationResult
Sourcepub fn new(
files: Vec<GeneratedFile>,
validation: ValidationResult,
conflicts: Vec<FileConflictInfo>,
stats: GenerationStats,
) -> Self
pub fn new( files: Vec<GeneratedFile>, validation: ValidationResult, conflicts: Vec<FileConflictInfo>, stats: GenerationStats, ) -> Self
Create a new generation result
Sourcepub fn with_review(self, review: ReviewResult) -> Self
pub fn with_review(self, review: ReviewResult) -> Self
Add review results to the generation result
Trait Implementations§
Source§impl Clone for GenerationResult
impl Clone for GenerationResult
Source§fn clone(&self) -> GenerationResult
fn clone(&self) -> GenerationResult
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 GenerationResult
impl Debug for GenerationResult
Source§impl<'de> Deserialize<'de> for GenerationResult
impl<'de> Deserialize<'de> for GenerationResult
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 GenerationResult
impl RefUnwindSafe for GenerationResult
impl Send for GenerationResult
impl Sync for GenerationResult
impl Unpin for GenerationResult
impl UnwindSafe for GenerationResult
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