Enum ArchivePolicyIssue
pub enum ArchivePolicyIssue {
PathIssue(ArchivePathIssue),
SymlinkNotAllowed,
EntryTooLarge {
size: u64,
max: u64,
},
TotalSizeTooLarge {
total: u64,
max: u64,
},
TooManyEntries {
entries: usize,
max: usize,
},
}Expand description
Policy violations detected for archive entries or entry lists.
Variants§
PathIssue(ArchivePathIssue)
The entry path violates the configured path policy.
SymlinkNotAllowed
Symbolic links are disallowed by the policy.
EntryTooLarge
A single entry is larger than the configured maximum.
TotalSizeTooLarge
Total known entry size is larger than the configured maximum.
Fields
TooManyEntries
Entry count is larger than the configured maximum.
Trait Implementations§
§impl Clone for ArchivePolicyIssue
impl Clone for ArchivePolicyIssue
§fn clone(&self) -> ArchivePolicyIssue
fn clone(&self) -> ArchivePolicyIssue
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 more§impl Debug for ArchivePolicyIssue
impl Debug for ArchivePolicyIssue
§impl Hash for ArchivePolicyIssue
impl Hash for ArchivePolicyIssue
§impl Ord for ArchivePolicyIssue
impl Ord for ArchivePolicyIssue
§fn cmp(&self, other: &ArchivePolicyIssue) -> Ordering
fn cmp(&self, other: &ArchivePolicyIssue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for ArchivePolicyIssue
impl PartialEq for ArchivePolicyIssue
§impl PartialOrd for ArchivePolicyIssue
impl PartialOrd for ArchivePolicyIssue
impl Copy for ArchivePolicyIssue
impl Eq for ArchivePolicyIssue
impl StructuralPartialEq for ArchivePolicyIssue
Auto Trait Implementations§
impl Freeze for ArchivePolicyIssue
impl RefUnwindSafe for ArchivePolicyIssue
impl Send for ArchivePolicyIssue
impl Sync for ArchivePolicyIssue
impl Unpin for ArchivePolicyIssue
impl UnsafeUnpin for ArchivePolicyIssue
impl UnwindSafe for ArchivePolicyIssue
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