File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import "metadata/v1alpha1/album.proto";
7
7
message ArtistSong {
8
8
string id = 1 ;
9
9
string title = 2 ;
10
+ string artist = 3 ;
10
11
repeated Artist artists = 4 ;
11
12
float duration = 5 ;
12
13
int32 disc_number = 6 ;
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ pub struct ArtistSong {
49
49
pub id : :: prost:: alloc:: string:: String ,
50
50
#[ prost( string, tag = "2" ) ]
51
51
pub title : :: prost:: alloc:: string:: String ,
52
+ #[ prost( string, tag = "3" ) ]
53
+ pub artist : :: prost:: alloc:: string:: String ,
52
54
#[ prost( message, repeated, tag = "4" ) ]
53
55
pub artists : :: prost:: alloc:: vec:: Vec < Artist > ,
54
56
#[ prost( float, tag = "5" ) ]
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ pub mod api {
196
196
track_number : i32:: try_from ( model. track . unwrap_or_default ( ) ) . unwrap ( ) ,
197
197
artists : model. artists . into_iter ( ) . map ( Into :: into) . collect ( ) ,
198
198
album : Some ( model. album . into ( ) ) ,
199
+ artist : model. artist ,
199
200
..Default :: default ( )
200
201
}
201
202
}
@@ -214,6 +215,7 @@ pub mod api {
214
215
Some ( album) => Some ( album. into ( ) ) ,
215
216
None => None ,
216
217
} ,
218
+ artist : self . artist ,
217
219
..Default :: default ( )
218
220
}
219
221
}
You can’t perform that action at this time.
0 commit comments