pub struct LearningObservation {
pub path: PathBuf,
pub category: Option<Category>,
pub bytes: u64,
pub reason: String,
pub modified_at_unix: Option<u64>,
pub confidence: Confidence,
}Expand description
One local-only Learning Mode measurement independent of cleanup eligibility filters.
Fields§
§path: PathBufObserved artifact path. Remote telemetry must never include this value.
category: Option<Category>Known category when the scanner can classify the artifact safely.
bytes: u64Estimated allocated bytes on disk.
reason: StringFilesystem evidence behind the observation.
modified_at_unix: Option<u64>Latest observed modification time as seconds since the Unix epoch.
confidence: ConfidenceSafety confidence independent of cleanup age and size filters.
Trait Implementations§
Source§impl Clone for LearningObservation
impl Clone for LearningObservation
Source§fn clone(&self) -> LearningObservation
fn clone(&self) -> LearningObservation
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 LearningObservation
impl Debug for LearningObservation
Source§impl<'de> Deserialize<'de> for LearningObservation
impl<'de> Deserialize<'de> for LearningObservation
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 LearningObservation
impl RefUnwindSafe for LearningObservation
impl Send for LearningObservation
impl Sync for LearningObservation
impl Unpin for LearningObservation
impl UnsafeUnpin for LearningObservation
impl UnwindSafe for LearningObservation
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