(field: &FieldDescriptorProto)
| 983 | } |
| 984 | |
| 985 | fn is_required_field(field: &FieldDescriptorProto) -> bool { |
| 986 | matches!(field_label(field), FieldLabel::Required) |
| 987 | } |
| 988 | |
| 989 | fn field_label(field: &FieldDescriptorProto) -> FieldLabel { |
| 990 | FieldLabel::try_from(field.label.unwrap_or_default()).unwrap_or(FieldLabel::Optional) |
no outgoing calls
no test coverage detected