pub struct CodeQualityIssue {
pub severity: IssueSeverity,
pub title: String,
pub description: String,
pub file_path: String,
pub line_number: Option<u32>,
pub suggested_fix: Option<String>,
}Expand description
Code quality issue
Fields§
§severity: IssueSeverityIssue severity
title: StringIssue title
description: StringIssue description
file_path: StringFile path where issue was found
line_number: Option<u32>Line number (if applicable)
suggested_fix: Option<String>Suggested fix
Implementations§
Source§impl CodeQualityIssue
impl CodeQualityIssue
Sourcepub fn new(
severity: IssueSeverity,
title: impl Into<String>,
description: impl Into<String>,
file_path: impl Into<String>,
) -> Self
pub fn new( severity: IssueSeverity, title: impl Into<String>, description: impl Into<String>, file_path: impl Into<String>, ) -> Self
Create a new code quality issue
Sourcepub fn with_line_number(self, line: u32) -> Self
pub fn with_line_number(self, line: u32) -> Self
Set line number
Sourcepub fn with_suggested_fix(self, fix: impl Into<String>) -> Self
pub fn with_suggested_fix(self, fix: impl Into<String>) -> Self
Set suggested fix
Trait Implementations§
Source§impl Clone for CodeQualityIssue
impl Clone for CodeQualityIssue
Source§fn clone(&self) -> CodeQualityIssue
fn clone(&self) -> CodeQualityIssue
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 CodeQualityIssue
impl Debug for CodeQualityIssue
Source§impl<'de> Deserialize<'de> for CodeQualityIssue
impl<'de> Deserialize<'de> for CodeQualityIssue
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 CodeQualityIssue
impl RefUnwindSafe for CodeQualityIssue
impl Send for CodeQualityIssue
impl Sync for CodeQualityIssue
impl Unpin for CodeQualityIssue
impl UnwindSafe for CodeQualityIssue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more