pub enum FileVerdict {
Ordinary,
Secret {
pattern: String,
},
KeptOverSecret {
keep_pattern: String,
secret_pattern: String,
},
}Expand description
What the classification rules decided about one file name.
Spelled out as three cases rather than an Option, because the third one —
a keep rule overriding a secret rule — used to be indistinguishable from
“no rule matched”. A file carried past the secret list is exactly the file a
reader has to know about.
Variants§
Ordinary
No rule applies. Packed as ordinary content.
Secret
A secret rule matched and nothing overrode it. Not packed, reported.
KeptOverSecret
A secret rule matched but a keep rule outranked it, so the file is
packed.
The operator asked for this, so it is not an error and not a warning — but the entire purpose of the secret list is that these files are dangerous to carry, so the override is recorded instead of applied silently.
Trait Implementations§
Source§impl Clone for FileVerdict
impl Clone for FileVerdict
Source§fn clone(&self) -> FileVerdict
fn clone(&self) -> FileVerdict
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 FileVerdict
impl Debug for FileVerdict
impl Eq for FileVerdict
Source§impl PartialEq for FileVerdict
impl PartialEq for FileVerdict
impl StructuralPartialEq for FileVerdict
Auto Trait Implementations§
impl Freeze for FileVerdict
impl RefUnwindSafe for FileVerdict
impl Send for FileVerdict
impl Sync for FileVerdict
impl Unpin for FileVerdict
impl UnsafeUnpin for FileVerdict
impl UnwindSafe for FileVerdict
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.