Skip to main content

Module params

Module params 

Source
Expand description

How this crate reads and writes a request.

The request body is RequestParams in the client crate, and the client depends on this crate, so this crate cannot name that type. It asks for the handful of reads and writes an edit needs instead, and the client implements them for its own type. Every rule about what may be written, the caller’s precedence above all, lives in crate::EditSet::apply and crate::validate(), not in an implementation of this trait.

An implementation is plain field access. It must not allocate on the read methods, because candidates are validated and featurized on every request.

Traits§

Params
Field access on a request body, keyed by Key.