OneOrMany implemented in Rust
https://github.com/0xPlaygrounds/rig/blob/main/rig-qdrant/examples/qdrant_vector_search.rs In the tuple |(d, embeddings)|, the components correspond to the values yielded by documents.into_iter() Thus: Example of OneOrMany Utility Type in Rust Breakdown: Example Output: In this case, OneOrMany makes it flexible to handle cases where you might have a single embedding or multiple embeddings, while keeping the code concise and readable.