pub fn make_required(field: &mut Field, _schema: &Typespace)Expand description
Makes a field required in the schema.
std::option::Option<T>→ requiredTreflectapi::Option<T>→ requiredstd::option::Option<T>(removes the “undefined” state, keeps nullable)- Other types → marks the field as required without changing the type