Rust | smart open | You cannot iterate over an enum

Опубликовано: 28 Сентябрь 2024
на канале: Joydeep Bhattacharjee
40
1

In this video what my idea was that there has already been a bunch of enums that are defined in Region enum and I could maybe iterate over them, so I would not need to hard code the regions, but then I understood that you cannot iterate over an enum and hence the next path that I took was to hardcode the enums in a vector. Iterating over a vector is trivial as shown in this video.

This is the ongoing task to bruteforce the region for a particular public s3 bucket.

This video is the ongoing development of the smart-open crate.
https://crates.rs/crates/smart_open