pub struct ReviewCandidate {
pub path: PathBuf,
pub bytes: u64,
pub reason: String,
pub modified_at_unix: Option<u64>,
pub confidence: Confidence,
pub suggested_rule: Option<ReviewRule>,
pub project_root: Option<PathBuf>,
pub approved: bool,
}Expand description
A large cache-like directory observed by Learning Mode but never selected for cleanup.
Fields§
§path: PathBufAbsolute path retained only in the local report.
bytes: u64Estimated allocated bytes on disk.
reason: StringEvidence that made the directory interesting to Learning Mode.
modified_at_unix: Option<u64>Latest observed modification time as seconds since the Unix epoch.
confidence: ConfidenceReview candidates are never promoted to safe without an explicit product rule.
suggested_rule: Option<ReviewRule>Product rule that can safely constrain an approval for this path.
project_root: Option<PathBuf>Project root to which the suggested rule would be scoped.
approved: boolWhether the user has approved the suggested rule for this exact path.
Trait Implementations§
Source§impl Clone for ReviewCandidate
impl Clone for ReviewCandidate
Source§fn clone(&self) -> ReviewCandidate
fn clone(&self) -> ReviewCandidate
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 ReviewCandidate
impl Debug for ReviewCandidate
Source§impl<'de> Deserialize<'de> for ReviewCandidate
impl<'de> Deserialize<'de> for ReviewCandidate
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 ReviewCandidate
impl RefUnwindSafe for ReviewCandidate
impl Send for ReviewCandidate
impl Sync for ReviewCandidate
impl Unpin for ReviewCandidate
impl UnsafeUnpin for ReviewCandidate
impl UnwindSafe for ReviewCandidate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more