maybe_multiple/lib.rs
1// Copyright 2024 bmc::labs GmbH. All rights reserved.
2
3//! We use [`Option`] extensively in Rust, and for good reason. Sometimes, however, we need to be
4//! able to represent something that can either be empty, a single element or a list of elements.
5//! One example would be the pull policy field in Docker configurations: you can omit it to defer
6//! to the global configuration, or you can specify a single pull policy, or you can specify a
7//! list of pull policies. The containers in this crate implement these semantics.
8
9mod maybe_multiple;
10mod multiple;
11
12pub use maybe_multiple::MaybeMultiple;
13pub use multiple::Multiple;