@@ -170,6 +170,9 @@ pub struct Package {
170170 pub complete : bool ,
171171 pub release_data : Option < PackageReleaseData > ,
172172 pub repo_url : Option < String > ,
173+ pub hash : Option < String > ,
174+ pub pipeline_error : Option < String > ,
175+ pub pipeline_status : Option < PipelineStatus > ,
173176}
174177
175178#[ derive( Serialize , Deserialize ) ]
@@ -243,25 +246,14 @@ pub enum IgnoredReason {
243246 Other ,
244247}
245248
246- /// One of the authors of a package.
247- #[ derive( Serialize , Deserialize ) ]
248- #[ serde( rename_all = "camelCase" ) ]
249- pub struct Author {
250- pub name : String ,
251- pub avatar_url : String ,
252- pub email : String ,
253- pub profile_url : String ,
254- }
255-
256- /// Stats about how responsive the maintainers of a package are.
257- #[ derive( Serialize , Deserialize ) ]
258- pub struct DeveloperResponsiveness {
259- pub open_issue_count : Option < usize > ,
260- pub total_issue_count : Option < usize > ,
261- pub open_issue_avg_duration : Option < u32 > ,
262- pub open_pull_request_count : Option < usize > ,
263- pub total_pull_request_count : Option < usize > ,
264- pub open_pull_request_avg_duration : Option < u32 > ,
249+ /// Package status in the analysis pipeline.
250+ #[ derive( Serialize , Deserialize , Copy , Clone , PartialEq , Eq , Debug ) ]
251+ pub enum PipelineStatus {
252+ Submitted ,
253+ Downloading ,
254+ Processing ,
255+ Analyzing ,
256+ Complete ,
265257}
266258
267259/// Information about when package releases have happened.
0 commit comments