Disable deriving PartialEq
#599
-
I have a message that will have a customized For example, I have the following message syntax = "proto3";
message SpecialValue {
int64 value_1 = 1;
int32 value_2 = 2;
} the generated code will be #[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpecialValue {
#[prost(int64, tag="1")]
pub value_1: i64,
#[prost(int32, tag="2")]
pub value_2: i32,
} I am looking for a way to remove #[derive(Clone, ::prost::Message)]
pub struct SpecialValue {
#[prost(int64, tag="1")]
pub value_1: i64,
#[prost(int32, tag="2")]
pub value_2: i32,
} |
Beta Was this translation helpful? Give feedback.
Answered by
LucioFranco
Feb 28, 2022
Replies: 1 comment
-
I don't think there is a way right now but you can always newtype the field and implement your own partialeq which would be easier than including a change in |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fardream
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think there is a way right now but you can always newtype the field and implement your own partialeq which would be easier than including a change in
prost-build
to not derive that attribute.