pub struct DetectionRule {
pub framework: String,
pub project_type: ProjectType,
pub conditions: Vec<DetectionCondition>,
}
Fields§
§framework: String
§project_type: ProjectType
§conditions: Vec<DetectionCondition>
Implementations§
Source§impl DetectionRule
impl DetectionRule
pub fn matches( &self, dependencies: &[Dependency], workspace_root: &Path, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DetectionRule
impl RefUnwindSafe for DetectionRule
impl Send for DetectionRule
impl Sync for DetectionRule
impl Unpin for DetectionRule
impl UnwindSafe for DetectionRule
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