pub struct Suppression {
pub scope: Scope,
pub rules: Vec<RuleId>,
pub reason: String,
pub expires: Option<Date>,
pub line: u32,
pub column: u32,
}Expand description
A directive that parsed.
Fields§
§scope: ScopeWhat it covers.
rules: Vec<RuleId>The rules it silences. Never empty — a directive naming none is malformed.
reason: StringWhy, as the author wrote it.
expires: Option<Date>When it stops applying, if it says.
line: u32One-based line the directive is on.
column: u32One-based column the directive starts at.
Implementations§
Trait Implementations§
Source§impl Clone for Suppression
impl Clone for Suppression
Source§fn clone(&self) -> Suppression
fn clone(&self) -> Suppression
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 Suppression
impl Debug for Suppression
impl Eq for Suppression
Source§impl PartialEq for Suppression
impl PartialEq for Suppression
impl StructuralPartialEq for Suppression
Auto Trait Implementations§
impl Freeze for Suppression
impl RefUnwindSafe for Suppression
impl Send for Suppression
impl Sync for Suppression
impl Unpin for Suppression
impl UnsafeUnpin for Suppression
impl UnwindSafe for Suppression
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