fn on_field<D: MaybeData>(
data_type: &DataType,
maybe: D,
proto_field: &FieldDescriptor,
in_repeated: bool,
) -> Result<D::Out, FieldEncodeError>Expand description
Handles both validate (without actual data) and encode.
See MaybeData for more info.