pub struct RiskUseCase<S> { /* private fields */ }Implementations§
Source§impl<S: GraphStore> RiskUseCase<S>
impl<S: GraphStore> RiskUseCase<S>
pub fn new(store: S) -> Self
Sourcepub fn analyze(&self, config: &RiskConfig) -> Result<RiskAnalysis>
pub fn analyze(&self, config: &RiskConfig) -> Result<RiskAnalysis>
Full risk analysis: compute all factors, score symbols, aggregate files.
Sourcepub fn score_symbol(
&self,
qualified_name: &str,
config: &RiskConfig,
) -> Result<RiskScore>
pub fn score_symbol( &self, qualified_name: &str, config: &RiskConfig, ) -> Result<RiskScore>
Score a single symbol (loads full graph, filters to one result).
Auto Trait Implementations§
impl<S> Freeze for RiskUseCase<S>where
S: Freeze,
impl<S> RefUnwindSafe for RiskUseCase<S>where
S: RefUnwindSafe,
impl<S> Send for RiskUseCase<S>where
S: Send,
impl<S> Sync for RiskUseCase<S>where
S: Sync,
impl<S> Unpin for RiskUseCase<S>where
S: Unpin,
impl<S> UnsafeUnpin for RiskUseCase<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for RiskUseCase<S>where
S: UnwindSafe,
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