pub enum DiagnosticKind {
UnknownType {
rust_path: String,
suggestion: Option<String>,
},
UnknownWithWrapper {
wrapper_path: String,
},
GenericArity {
rust_path: String,
expected: usize,
found: usize,
},
UnresolvedTypeRef {
name: String,
},
UnknownRenameTarget {
type_name: String,
},
DuplicateType {
name: String,
},
ImportConflict {
export: String,
modules: Vec<String>,
},
UnsupportedFieldType {
rust_type: String,
},
NameCollision {
emitted: String,
originals: Vec<String>,
},
}Expand description
The kinds of code-generation diagnostics.
Variants§
UnknownType
A fully-qualified Rust type path with no registry mapping.
Fields
UnknownWithWrapper
A #[rkyv(with = ...)] wrapper with no registered handler.
GenericArity
A registered generic type instantiated with the wrong number of type arguments.
Fields
UnresolvedTypeRef
A CodecExpr::TypeRef that does not
resolve to any added type.
UnknownRenameTarget
A set_archived_name
target that never materialized.
DuplicateType
The same type name added more than once.
ImportConflict
The same export name imported from two different modules.
Fields
UnsupportedFieldType
A Rust field type the generator cannot map to a codec.
NameCollision
Two or more names within one type collapse to the same identifier
under the configured Casing.
Trait Implementations§
Source§impl Clone for DiagnosticKind
impl Clone for DiagnosticKind
Source§fn clone(&self) -> DiagnosticKind
fn clone(&self) -> DiagnosticKind
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 moreSource§impl Debug for DiagnosticKind
impl Debug for DiagnosticKind
Source§impl Display for DiagnosticKind
impl Display for DiagnosticKind
impl Eq for DiagnosticKind
Source§impl PartialEq for DiagnosticKind
impl PartialEq for DiagnosticKind
impl StructuralPartialEq for DiagnosticKind
Auto Trait Implementations§
impl Freeze for DiagnosticKind
impl RefUnwindSafe for DiagnosticKind
impl Send for DiagnosticKind
impl Sync for DiagnosticKind
impl Unpin for DiagnosticKind
impl UnsafeUnpin for DiagnosticKind
impl UnwindSafe for DiagnosticKind
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