#[non_exhaustive]pub enum TargetRefusalKind {
UnknownExplicit {
requested: TargetToken,
},
ExplicitUnavailable {
target: DialectId,
requested: TargetToken,
reason: String,
},
InheritedUnavailable {
source: DialectId,
reason: String,
},
UnrecordedSource,
NoDefault {
source: DefaultSource,
},
DefaultUnavailable {
target: DialectId,
source: DefaultSource,
reason: String,
},
}Expand description
One target-refusal reason, independent of the catalog presented with it.
Each request state is distinct. In particular, absence of an explicit token does not conflate an unclassified same-format source with a foreign source and a missing cross-format default.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownExplicit
An explicit token names no entry in the encoder catalog.
Fields
requested: TargetTokenToken supplied by the caller, retained verbatim.
A catalog target was selected explicitly but this input cannot reach it.
Same-format inheritance selected a source dialect the writer cannot preserve.
UnrecordedSource
Same-format inheritance found source metadata without a dialect.
NoDefault
Inheritance had no same-format source and the catalog declares no default.
Fields
source: DefaultSourceWhy no same-format source identity was available to inherit.
A cross-format default was selected but this input cannot reach it.