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 @@ -88,7 +88,7 @@ impl FromProto<protos::product_state::Product> for Product {
88
88
fn from_proto ( product : protos:: product_state:: Product ) -> Result < Self , ProtoConversionError > {
89
89
Ok ( Product {
90
90
identifier : product. get_identifier ( ) . to_string ( ) ,
91
- product_type : ProductType :: from_proto ( product. get_field_type ( ) ) ?,
91
+ product_type : ProductType :: from_proto ( product. get_product_type ( ) ) ?,
92
92
owner : product. get_owner ( ) . to_string ( ) ,
93
93
product_values : product
94
94
. get_product_values ( )
@@ -104,7 +104,7 @@ impl FromNative<Product> for protos::product_state::Product {
104
104
fn from_native ( product : Product ) -> Result < Self , ProtoConversionError > {
105
105
let mut proto = protos:: product_state:: Product :: new ( ) ;
106
106
proto. set_identifier ( product. identifier ( ) . to_string ( ) ) ;
107
- proto. set_field_type ( product. product_type ( ) . clone ( ) . into_proto ( ) ?) ;
107
+ proto. set_product_type ( product. product_type ( ) . clone ( ) . into_proto ( ) ?) ;
108
108
proto. set_owner ( product. owner ( ) . to_string ( ) ) ;
109
109
proto. set_product_values ( RepeatedField :: from_vec (
110
110
product
You can’t perform that action at this time.
0 commit comments