pub enum BundleError {
Schema(String),
DecisionId,
Lifetime {
location: ItemLocation,
problem: LifetimeProblem,
},
TooMany {
what: &'static str,
count: usize,
},
Sequence {
index: usize,
},
DuplicateSupply {
index: usize,
},
Role {
location: ItemLocation,
},
Identity {
location: ItemLocation,
},
SuppliesWithoutCapture,
}Expand description
Why a bundle is structurally invalid, before anything is resolved.
Variants§
Schema(String)
DecisionId
A decision id is 1 to 256 bytes.
Lifetime
TooMany
Sequence
Supply sequence numbers are not contiguous from 0 in entry order.
DuplicateSupply
Two entries share a step and instance.
Role
An item declares a document schema its role does not allow.
Fields
§
location: ItemLocationIdentity
The plan or snapshot item declares an identity other than the
bundle’s plan_id or snapshot_id.
Fields
§
location: ItemLocationSuppliesWithoutCapture
A disabled or limit-exceeded capture carries supplies.
Trait Implementations§
Source§impl Clone for BundleError
impl Clone for BundleError
Source§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
impl Eq for BundleError
Source§impl Error for BundleError
impl Error for BundleError
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 BundleError
impl PartialEq for BundleError
impl StructuralPartialEq for BundleError
Auto Trait Implementations§
impl Freeze for BundleError
impl RefUnwindSafe for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
impl UnwindSafe for BundleError
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