Enum DatapackLoadReason
#[non_exhaustive]pub enum DatapackLoadReason {
NotUtf8,
InvalidEntryId,
Decode(DatapackDecodeError),
UnresolvedReference {
field: String,
registry: String,
target: String,
},
}Expand description
Why a candidate was refused. The whole candidate fails, never one entry.
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.
NotUtf8
The winning file is not UTF-8 text.
InvalidEntryId
The entry’s id (from its namespace and file name) is not a lowercase namespace:path.
Decode(DatapackDecodeError)
The file did not decode against the registry’s schema.
UnresolvedReference
A reference names an entry of a declared registry that no pack defines.
Trait Implementations§
§impl Clone for DatapackLoadReason
impl Clone for DatapackLoadReason
§fn clone(&self) -> DatapackLoadReason
fn clone(&self) -> DatapackLoadReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DatapackLoadReason
impl Debug for DatapackLoadReason
impl Eq for DatapackLoadReason
§impl PartialEq for DatapackLoadReason
impl PartialEq for DatapackLoadReason
impl StructuralPartialEq for DatapackLoadReason
Auto Trait Implementations§
impl Freeze for DatapackLoadReason
impl RefUnwindSafe for DatapackLoadReason
impl Send for DatapackLoadReason
impl Sync for DatapackLoadReason
impl Unpin for DatapackLoadReason
impl UnsafeUnpin for DatapackLoadReason
impl UnwindSafe for DatapackLoadReason
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