Skip to content

Unable to access elements of ListCoursesResponse #449

Closed Answered by Byron
pmnlla asked this question in Q&A
Discussion options

You must be logged in to vote

I'd recommend to look up the docs and see how the type Option<Vec<Course>> can be handled. What's probably confusing here is that Option also can be iterated, which is why that loop seems to return a Vec<Course> itself, which of course could now be iterated as well.

Since this is a Rust question, it's not at all related to this crate as initially suggested.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pmnlla
Comment options

@Byron
Comment options

Answer selected by pmnlla
@pmnlla
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #448 on October 16, 2023 05:10.