Skip to main content

make_nonnullable

Function make_nonnullable 

Source
pub fn make_nonnullable(field: &mut Field, _schema: &Typespace)
Expand description

Makes a field non-nullable in the schema.

  • std::option::Option<T> → T (required unchanged)
  • reflectapi::Option<T> → T (required unchanged) (removes the “null” state, keeps optionality)
  • Other types → no-op (already non-nullable)