#[non_exhaustive]pub enum RetentionError {
UnderFloor {
key: String,
years: u16,
},
UnderBound {
key: String,
period: Period,
floor: Period,
ground: String,
},
OverCeiling {
key: String,
period: Period,
ceiling: Period,
ground: String,
},
NationalUnderUnion {
floor: Period,
},
FloorIndefinite,
CeilingUnderFloor {
ceiling: Period,
floor: Period,
},
UnknownCategory {
code: String,
},
OriginKey,
}Expand description
Why a retention policy or its bounds were refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnderFloor
A period in years is under the floor of Art 9(2).
Fields
UnderBound
A period does not reach the floor of the bounds from every date of access.
Fields
OverCeiling
A period passes the ceiling of the bounds.
Fields
NationalUnderUnion
A national floor does not reach the three years of Art 9(2).
FloorIndefinite
A floor is without end.
CeilingUnderFloor
A ceiling does not reach the floor.
UnknownCategory
A category key is neither a priority category nor a national one the category map declares.
OriginKey
An origin key is empty or holds a control character.
Trait Implementations§
Source§impl Clone for RetentionError
impl Clone for RetentionError
Source§impl Debug for RetentionError
impl Debug for RetentionError
Source§impl Display for RetentionError
impl Display for RetentionError
impl Eq for RetentionError
Source§impl Error for RetentionError
impl Error for RetentionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RetentionError
impl PartialEq for RetentionError
impl StructuralPartialEq for RetentionError
Auto Trait Implementations§
impl Freeze for RetentionError
impl RefUnwindSafe for RetentionError
impl Send for RetentionError
impl Sync for RetentionError
impl Unpin for RetentionError
impl UnsafeUnpin for RetentionError
impl UnwindSafe for RetentionError
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