You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why can't we generate AssetAttrAggregationCreateEvent like the following (Oneof is fine, but it's inconvenient to use now, and we need to convert From every time):
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetAttrAggregationCreateEvent {
#[prost(int64, tag = "1")]
pub id: i64,
#[prost(int64, tag = "2")]
pub source_id: i64,
#[prost(enumeration = "AssetAttrAggregationSourceType", tag = "3")]
pub source_type: AssetAttrAggregationSourceType,
#[prost(int64, optional, tag = "4")]
pub association_id: ::core::option::Option<i64>
}
The text was updated successfully, but these errors were encountered:
I have a
.proto
file:After using
prost-build
to generate the code, it looks like this:Why can't we generate
AssetAttrAggregationCreateEvent
like the following (Oneof
is fine, but it's inconvenient to use now, and we need to convertFrom
every time):The text was updated successfully, but these errors were encountered: