Skip to main content

without_secrets

Function without_secrets 

Source
pub fn without_secrets<E: EntityRepoMeta, R: Serialize>(response: R) -> Value
Expand description

A response body for a hand-written or generated route outside the generic handler (a state transition, a verb) that returns an entity’s response DTO: the entity’s secrets stripped, its private fields kept from every caller (as the generic write responses do), and its permission-gated fields redacted — with no caller named, for every caller. Prefer without_secrets_for where the route holds the request’s AuthContext.