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, and its private fields kept from every caller, as the generic write responses do.