pub struct PluginFinding {
pub severity: Severity,
pub rule: String,
pub file: Option<String>,
pub line: Option<u32>,
pub message: String,
}Expand description
A single finding reported by a plugin. Maps to klasp’s Finding struct.
Fields§
§severity: Severity"info", "warn", or "error".
rule: StringRule identifier (e.g. "ruff/E501").
file: Option<String>§line: Option<u32>§message: StringTrait Implementations§
Source§impl Clone for PluginFinding
impl Clone for PluginFinding
Source§fn clone(&self) -> PluginFinding
fn clone(&self) -> PluginFinding
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 PluginFinding
impl Debug for PluginFinding
Source§impl<'de> Deserialize<'de> for PluginFinding
impl<'de> Deserialize<'de> for PluginFinding
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
Source§impl From<PluginFinding> for Finding
impl From<PluginFinding> for Finding
Source§fn from(pf: PluginFinding) -> Self
fn from(pf: PluginFinding) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PluginFinding
impl RefUnwindSafe for PluginFinding
impl Send for PluginFinding
impl Sync for PluginFinding
impl Unpin for PluginFinding
impl UnsafeUnpin for PluginFinding
impl UnwindSafe for PluginFinding
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