Hello All,
Request for review of my code for correctness in implementing below from Chapter 17.3 from Rust book.
Wrote the code for below asked exercise in 17.3 and attached the link
Add a reject
method that changes the post’s state from PendingReview
back to Draft
Please do let me know if my implementation for the above question asked is correct or not and advise for any corrections.
Source
code for reject method was implemented in src\lib.rs
Appreciate your help.