Skip to main content

include_fields

Function include_fields 

Source
pub fn include_fields<T: Serialize + ResponseModel>(
    value: T,
    fields: &[&str],
) -> ValidatedResponse<T>
Expand description

Macro helper for creating validated responses with field inclusion.

This is a convenience wrapper that only includes specified fields in the response.