pub struct Reviews { /* private fields */ }
Implementations§
Source§impl Reviews
impl Reviews
pub fn new(owner: impl ToString, repo: impl ToString) -> Self
Sourcepub fn get(&self, index: i64) -> GetReviewsBuilder
pub fn get(&self, index: i64) -> GetReviewsBuilder
List a review’s Pull Request.
§Example
use gitea_sdk::{Client, Auth, model::issues::State};
async fn reviews() {
let client = Client::new(
"https://gitea.example.com",
Auth::Token("your-token")
);
let reviews = client
.pulls("owner", "repo")
.reviews()
.get(1)
.send(&client)
.await
.unwrap();
}
This will allow you to get all the reviews from the pull request.
Auto Trait Implementations§
impl Freeze for Reviews
impl RefUnwindSafe for Reviews
impl Send for Reviews
impl Sync for Reviews
impl Unpin for Reviews
impl UnwindSafe for Reviews
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more