pub struct CompileErrors {
pub errors: Vec<PeplError>,
pub warnings: Vec<PeplError>,
pub total_errors: usize,
pub total_warnings: usize,
}Expand description
The structured JSON output for compilation results.
Fields§
§errors: Vec<PeplError>§warnings: Vec<PeplError>§total_errors: usize§total_warnings: usizeImplementations§
Source§impl CompileErrors
impl CompileErrors
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if there are any errors.
Sourcepub fn push_error(&mut self, error: PeplError)
pub fn push_error(&mut self, error: PeplError)
Add an error, respecting the MAX_ERRORS limit.
Sourcepub fn push_warning(&mut self, warning: PeplError)
pub fn push_warning(&mut self, warning: PeplError)
Add a warning.
Trait Implementations§
Source§impl Clone for CompileErrors
impl Clone for CompileErrors
Source§fn clone(&self) -> CompileErrors
fn clone(&self) -> CompileErrors
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 CompileErrors
impl Debug for CompileErrors
Source§impl<'de> Deserialize<'de> for CompileErrors
impl<'de> Deserialize<'de> for CompileErrors
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 CompileErrors
impl RefUnwindSafe for CompileErrors
impl Send for CompileErrors
impl Sync for CompileErrors
impl Unpin for CompileErrors
impl UnwindSafe for CompileErrors
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