pub trait RoutingEnvelope: Sealed {
// Required method
fn routing_envelope(&self) -> InvokeRoutingEnvelope;
}Expand description
Routing metadata a dispatcher may read from a body before validation.
Sealed: implementable only inside web-api-types, so declaring a type’s
envelope is a reviewed change in the crate that owns the request types —
a doc-comment convention alone would be an ungated escape hatch from the
Unvalidated<T> type-state guarantee. Envelope fields are pure routing
inputs (they select a target; they are never business payload). No
associated type: an unconstrained type Envelope would let a future impl
return Self and hand the whole pre-validation body out — the concrete
return type bounds the projection at the trait, not per impl.
Required Methods§
fn routing_envelope(&self) -> InvokeRoutingEnvelope
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".