pub struct ProphecyResult {
pub predictions: Vec<Prediction>,
pub alerts: Vec<EcosystemAlert>,
pub average_risk: f32,
pub files_analysed: usize,
}Expand description
Result of a prophecy prediction run.
Fields§
§predictions: Vec<Prediction>Predictions about individual files, sorted by risk descending.
alerts: Vec<EcosystemAlert>Ecosystem-level alerts.
average_risk: f32Average risk across all analysed files.
files_analysed: usizeNumber of files analysed.
Trait Implementations§
Source§impl Clone for ProphecyResult
impl Clone for ProphecyResult
Source§fn clone(&self) -> ProphecyResult
fn clone(&self) -> ProphecyResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ProphecyResult
impl Debug for ProphecyResult
Source§impl<'de> Deserialize<'de> for ProphecyResult
impl<'de> Deserialize<'de> for ProphecyResult
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 Freeze for ProphecyResult
impl RefUnwindSafe for ProphecyResult
impl Send for ProphecyResult
impl Sync for ProphecyResult
impl Unpin for ProphecyResult
impl UnsafeUnpin for ProphecyResult
impl UnwindSafe for ProphecyResult
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