#[non_exhaustive]pub enum DiagnosticKind {
Show 16 variants
NormalizationLoss {
keyword: String,
},
ExternalReference {
reference: String,
},
AnchorReference {
reference: String,
},
IdRebasing {
id: String,
},
UnsupportedReferenceTarget {
reference: String,
},
UnsupportedKeyword {
keyword: String,
},
Ungeneratable {
keyword: String,
},
UnsupportedDialect {
dialect: String,
},
LossyNumber,
OpenComposition {
keyword: String,
},
TypelessObject,
NumericEnum,
IgnoredExtension {
keyword: String,
},
ReferenceCycle,
Unformatted,
Unvalidated {
keyword: String,
},
}Expand description
What kind of thing a diagnostic reports. The message says it in words; the kind lets a caller act on it without parsing them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NormalizationLoss
Upconverting the source version to 3.2 dropped something the
generator would have used. keyword names it.
ExternalReference
A $ref to another resource. Nothing outside the document is
resolved yet, because a fetched document has its own version
and dialect and would be read under the root’s.
AnchorReference
A $ref whose fragment is a plain-name anchor such as #Pet
rather than a JSON Pointer.
IdRebasing
An $id that re-bases the references beneath it. Their meaning
depends on the re-basing, which is not tracked yet.
UnsupportedReferenceTarget
A $ref to a local pointer that is not a component schema.
UnsupportedKeyword
A keyword the model keeps but the generator does not handle. Nothing is silently skipped: every one is named.
Ungeneratable
A schema no type can represent: false, or not.
UnsupportedDialect
A $schema or jsonSchemaDialect other than the OAS dialect
and Draft 2020-12.
LossyNumber
The mapped numeric type narrows what the schema permits.
OpenComposition
A composition that could not be proven safe and so lowers to an open holder rather than a struct or an enum.
TypelessObject
A typeless schema with object keywords: it permits every instance type, so it lowers to an open holder.
NumericEnum
An enum of numbers; the type stays the scalar.
IgnoredExtension
A code-bearing x- extension left unapplied because
allow_codegen_extensions is off.
ReferenceCycle
A component that is a bare $ref leading back to itself through
other bare references: nothing to generate.
Unformatted
rustfmt did not format the output — not installed, failed, or
could not be set up; the message says why — so it is unformatted and
will not match a formatted run byte for byte.
Unvalidated
With generated validation on, a constraint no generated check
covers: on a value of a type it does not apply to, or on array items
or map values written inline. keyword names it.
Trait Implementations§
Source§impl Clone for DiagnosticKind
impl Clone for DiagnosticKind
Source§impl Debug for DiagnosticKind
impl Debug for DiagnosticKind
impl Eq for DiagnosticKind
Source§impl Hash for DiagnosticKind
impl Hash for DiagnosticKind
Source§impl PartialEq for DiagnosticKind
impl PartialEq for DiagnosticKind
impl StructuralPartialEq for DiagnosticKind
Auto Trait Implementations§
impl Forget for DiagnosticKind
impl Freeze for DiagnosticKind
impl Move for DiagnosticKind
impl RefUnwindSafe for DiagnosticKind
impl Send for DiagnosticKindwhere
RawVecInner: Send,
impl Sync for DiagnosticKindwhere
RawVecInner: Sync,
impl Unpin for DiagnosticKind
impl UnsafeUnpin for DiagnosticKind
impl UnwindSafe for DiagnosticKindwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.