How to Get Values for Optional Elements #397
-
I am trying to analyze additions and deletions from a For reference, here is my code: Codelet mut page = octocrab
.repos("XAMPPRocky", "octocrab")
.list_commits()
.per_page(5)
.send()
.await?;
loop {
for commit in &page {
println!("{:?}", commit.stats);
}
page = match github
.get_page::<models::repos::RepoCommit>(&page.next)
.await?
{
Some(next_page) => next_page,
None => break,
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
cloud303-cholden
Jul 8, 2023
Replies: 1 comment
-
Closing discussion per #398. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cloud303-cholden
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Closing discussion per #398.