pub struct CodeSizeFinding {Show 13 fields
pub rule: CodeSizeRuleKind,
pub severity: Severity,
pub path: RepoRelativePath,
pub project: Option<ProjectName>,
pub language: CodeLanguage,
pub symbol: Option<String>,
pub node_kind: Option<String>,
pub start_line: NonZeroU32,
pub end_line: NonZeroU32,
pub measured_lines: NonZeroU32,
pub physical_lines: Option<NonZeroU32>,
pub limit: NonZeroU32,
pub message: String,
}Expand description
Code-size finding.
Fields§
§rule: CodeSizeRuleKindTriggered rule.
severity: SeverityConfigured severity.
path: RepoRelativePathRepo-relative source path.
project: Option<ProjectName>Owning project when known.
language: CodeLanguageSource language.
symbol: Option<String>Symbol name when available.
node_kind: Option<String>Syntax node kind when available.
start_line: NonZeroU32One-based start line.
end_line: NonZeroU32One-based end line.
measured_lines: NonZeroU32Measured line count.
physical_lines: Option<NonZeroU32>Physical file line count for file-size findings.
limit: NonZeroU32Configured rule limit.
message: StringHuman-readable explanation.
Trait Implementations§
Source§impl Clone for CodeSizeFinding
impl Clone for CodeSizeFinding
Source§fn clone(&self) -> CodeSizeFinding
fn clone(&self) -> CodeSizeFinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CodeSizeFinding
impl Debug for CodeSizeFinding
Source§impl<'de> Deserialize<'de> for CodeSizeFinding
impl<'de> Deserialize<'de> for CodeSizeFinding
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
impl Eq for CodeSizeFinding
Source§impl PartialEq for CodeSizeFinding
impl PartialEq for CodeSizeFinding
Source§fn eq(&self, other: &CodeSizeFinding) -> bool
fn eq(&self, other: &CodeSizeFinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CodeSizeFinding
impl Serialize for CodeSizeFinding
impl StructuralPartialEq for CodeSizeFinding
Auto Trait Implementations§
impl Freeze for CodeSizeFinding
impl RefUnwindSafe for CodeSizeFinding
impl Send for CodeSizeFinding
impl Sync for CodeSizeFinding
impl Unpin for CodeSizeFinding
impl UnsafeUnpin for CodeSizeFinding
impl UnwindSafe for CodeSizeFinding
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.