pub enum Unmapped {}Expand description
The T of a generated SField constant whose XRPL wire type has no Rust mapping yet
(VECTOR256, PATHSET, XCHAIN_BRIDGE, …).
The constant still exists, so its field code stays available to callers that only need the
code – sfield::Indexes.into() for a raw le_field read, or a
Locator path segment. What it can’t do is decode:
Unmapped deliberately implements neither FromCurrentTx nor FromLedger, so
current_tx::get_field(sfield::Indexes) is a compile error rather than a read that
type-checks and then fails at runtime.
This is an uninhabited enum – there is no value of this type, only the name, which is all a
PhantomData type parameter needs.
Wiring up a real type for one of these wire types (add it to typeMap in
tools/sfieldTypeMap.js, implement FieldDecoder, regenerate) turns every affected constant
into the real type, and any code that was reading it raw keeps compiling.