@@ -10,6 +10,16 @@ pub enum ProposalReviewStatus {
1010 Published ,
1111}
1212
13+ #[ derive( Debug , CandidType , Deserialize , Clone , PartialEq , Eq ) ]
14+ pub enum ProposalVote {
15+ #[ serde( rename = "unspecified" ) ]
16+ Unspecified ,
17+ #[ serde( rename = "yes" ) ]
18+ Yes ,
19+ #[ serde( rename = "no" ) ]
20+ No ,
21+ }
22+
1323#[ derive( Debug , CandidType , Deserialize , Clone , PartialEq , Eq ) ]
1424pub struct ProposalReview {
1525 pub proposal_id : String ,
@@ -22,6 +32,7 @@ pub struct ProposalReview {
2232 pub build_reproduced : Option < bool > ,
2333 pub images_paths : Vec < String > ,
2434 pub proposal_review_commits : Vec < ProposalReviewCommitWithId > ,
35+ pub vote : ProposalVote ,
2536}
2637
2738#[ derive( Debug , Clone , CandidType , Deserialize , PartialEq , Eq ) ]
@@ -36,6 +47,7 @@ pub struct CreateProposalReviewRequest {
3647 pub summary : Option < String > ,
3748 pub review_duration_mins : Option < u16 > ,
3849 pub build_reproduced : Option < bool > ,
50+ pub vote : Option < ProposalVote > ,
3951}
4052
4153pub type CreateProposalReviewResponse = ProposalReviewWithId ;
@@ -47,6 +59,7 @@ pub struct UpdateProposalReviewRequest {
4759 pub summary : Option < String > ,
4860 pub review_duration_mins : Option < u16 > ,
4961 pub build_reproduced : Option < bool > ,
62+ pub vote : Option < ProposalVote > ,
5063}
5164
5265#[ derive( Debug , Clone , CandidType , Deserialize , PartialEq , Eq ) ]
0 commit comments