This repository was archived by the owner on Mar 23, 2023. It is now read-only.
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ message Product {
26
26
string identifier = 1 ;
27
27
28
28
// What type of product is this (GS1)
29
- ProductType type = 2 ;
29
+ ProductType product_type = 2 ;
30
30
31
31
// Who owns this product (pike organization id)
32
32
string owner = 3 ;
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ impl FromProto<protos::product_state::Product> for Product {
90
90
) -> Result < Self , ProtoConversionError > {
91
91
Ok ( Product {
92
92
identifier : product. get_identifier ( ) . to_string ( ) ,
93
- product_type : ProductType :: from_proto ( product. get_field_type ( ) ) ?,
93
+ product_type : ProductType :: from_proto ( product. get_product_type ( ) ) ?,
94
94
owner : product. get_owner ( ) . to_string ( ) ,
95
95
product_values : product
96
96
. get_product_values ( )
@@ -106,7 +106,7 @@ impl FromNative<Product> for protos::product_state::Product {
106
106
fn from_native ( product : Product ) -> Result < Self , ProtoConversionError > {
107
107
let mut proto = protos:: product_state:: Product :: new ( ) ;
108
108
proto. set_identifier ( product. identifier ( ) . to_string ( ) ) ;
109
- proto. set_field_type ( product. product_type ( ) . clone ( ) . into_proto ( ) ?) ;
109
+ proto. set_product_type ( product. product_type ( ) . clone ( ) . into_proto ( ) ?) ;
110
110
proto. set_owner ( product. owner ( ) . to_string ( ) ) ;
111
111
proto. set_product_values ( RepeatedField :: from_vec (
112
112
product. product_values ( )
You can’t perform that action at this time.
0 commit comments