pub enum LifecycleRuleValidationError {
TooManyRules(usize),
ConflictingRules(HashMap<String, Vec<LifecycleRule>>),
}Expand description
Error type from failure to validate a set of LifecycleRules.
Variants
TooManyRules(usize)
The maximum number of rules (100) was exceeded for the bucket.
ConflictingRules(HashMap<String, Vec<LifecycleRule>>)
Multiple LifecycleRules exist for the same file.
Returns a map of conflicting filename prefixes; the most broad prefix (the base path) for each group of conflicts is the key and the conflicting rules are in the value.
There can be duplicate entries in the map when rules involving subfolders exist.
Trait Implementations
sourceimpl Debug for LifecycleRuleValidationError
impl Debug for LifecycleRuleValidationError
sourceimpl Error for LifecycleRuleValidationError
impl Error for LifecycleRuleValidationError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for LifecycleRuleValidationError
impl Send for LifecycleRuleValidationError
impl Sync for LifecycleRuleValidationError
impl Unpin for LifecycleRuleValidationError
impl UnwindSafe for LifecycleRuleValidationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more