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§
Source§impl Debug for LifecycleRuleValidationError
impl Debug for LifecycleRuleValidationError
Source§impl Error for LifecycleRuleValidationError
impl Error for LifecycleRuleValidationError
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()
Auto Trait Implementations§
impl Freeze for LifecycleRuleValidationError
impl RefUnwindSafe for LifecycleRuleValidationError
impl Send for LifecycleRuleValidationError
impl Sync for LifecycleRuleValidationError
impl Unpin for LifecycleRuleValidationError
impl UnwindSafe for LifecycleRuleValidationError
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