pub struct AllowEntry {Show 14 fields
pub id: String,
pub kind: FindingKind,
pub family: Option<String>,
pub path: Option<PathBuf>,
pub glob: Option<String>,
pub owner: String,
pub classification: String,
pub reason: String,
pub evidence: Vec<String>,
pub links: Vec<String>,
pub occurrence_limit: Option<u32>,
pub lifecycle: Lifecycle,
pub selector: Selector,
pub last_seen: Option<LastSeen>,
}Fields§
§id: String§kind: FindingKind§family: Option<String>§path: Option<PathBuf>§glob: Option<String>§owner: String§classification: String§reason: String§evidence: Vec<String>§links: Vec<String>§occurrence_limit: Option<u32>§lifecycle: Lifecycle§selector: Selector§last_seen: Option<LastSeen>Implementations§
Source§impl AllowEntry
impl AllowEntry
pub fn path_or_glob(&self) -> String
Sourcepub fn path_or_glob_opt(&self) -> Option<String>
pub fn path_or_glob_opt(&self) -> Option<String>
Return the path or glob as an Option, avoiding the empty-string sentinel
that path_or_glob() returns when no path/glob is set (#1923).
Trait Implementations§
Source§impl Clone for AllowEntry
impl Clone for AllowEntry
Source§fn clone(&self) -> AllowEntry
fn clone(&self) -> AllowEntry
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 AllowEntry
impl Debug for AllowEntry
impl Eq for AllowEntry
Source§impl PartialEq for AllowEntry
impl PartialEq for AllowEntry
impl StructuralPartialEq for AllowEntry
Auto Trait Implementations§
impl Freeze for AllowEntry
impl RefUnwindSafe for AllowEntry
impl Send for AllowEntry
impl Sync for AllowEntry
impl Unpin for AllowEntry
impl UnsafeUnpin for AllowEntry
impl UnwindSafe for AllowEntry
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