pub enum ValidationWarning {
UnknownKey {
axis: TaxonomyAxis,
key: String,
},
MetadataOversize {
soft_cap_bytes: usize,
actual_bytes: usize,
},
LegacyTag {
tag: String,
},
MetadataReservedKey {
key: String,
},
MetadataReservedPrefix {
key: String,
prefix: String,
},
}Expand description
Forward-compat / hygiene observation. Consumers that want strict validation can promote warnings to errors at their layer; the substrate validator always emits warnings, never errors, for these.
Variants§
UnknownKey
A known-axis tag whose key isn’t enumerated in the schema. Forward-compat: a future binding may emit a key this binding doesn’t yet know.
MetadataOversize
Total metadata size exceeds the soft cap. Consumed by
telemetry counters per CAPABILITY_SYSTEM_PLAN.md Locked
decision 2.
Fields
LegacyTag
A Tag::Legacy (untyped) tag. Future major versions may
deprecate; surfaced here for operator visibility.
MetadataReservedKey
CR-14: a metadata key collides with a substrate-reserved key
(intent, colocate-with, …). User-emitted writes through
with_metadata should route around these — collision can
override scheduler-internal hints.
MetadataReservedPrefix
CR-14: a metadata key matches a substrate-reserved prefix
(tool::, …). Same hazard shape as MetadataReservedKey
but matched by prefix rather than exact name.
Trait Implementations§
Source§impl Clone for ValidationWarning
impl Clone for ValidationWarning
Source§fn clone(&self) -> ValidationWarning
fn clone(&self) -> ValidationWarning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidationWarning
impl Debug for ValidationWarning
Source§impl PartialEq for ValidationWarning
impl PartialEq for ValidationWarning
Source§fn eq(&self, other: &ValidationWarning) -> bool
fn eq(&self, other: &ValidationWarning) -> bool
self and other values to be equal, and is used by ==.