pub struct RuleMatchReport<'a> { /* private fields */ }Implementations§
Source§impl<'a> RuleMatchReport<'a>
impl<'a> RuleMatchReport<'a>
pub fn new(m: &'a RuleMatch) -> Self
pub fn rule(&self) -> &str
pub fn checker(&self) -> &str
pub fn description(&self) -> Option<&str>
pub fn severity(&self) -> Severity
pub fn source(&self) -> &str
pub fn result(&self) -> &QueryResult
pub fn display(&self, before: usize, after: usize, line_numbers: bool) -> String
pub fn into_owned(self) -> RuleMatchReport<'static>
Trait Implementations§
Source§impl<'a> Debug for RuleMatchReport<'a>
impl<'a> Debug for RuleMatchReport<'a>
Source§impl<'de, 'a> Deserialize<'de> for RuleMatchReport<'a>
impl<'de, 'a> Deserialize<'de> for RuleMatchReport<'a>
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<'a> Freeze for RuleMatchReport<'a>
impl<'a> RefUnwindSafe for RuleMatchReport<'a>
impl<'a> Send for RuleMatchReport<'a>
impl<'a> Sync for RuleMatchReport<'a>
impl<'a> Unpin for RuleMatchReport<'a>
impl<'a> UnsafeUnpin for RuleMatchReport<'a>
impl<'a> UnwindSafe for RuleMatchReport<'a>
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