manta_shared/types/api/image.rs
1//! Parameters for `GET /images`.
2
3use chrono::NaiveDateTime;
4
5/// Typed parameters for fetching IMS images.
6pub struct GetImagesParams {
7 /// Exact IMS image ID; returns just that image when set.
8 pub id: Option<String>,
9 /// Glob pattern matched against image name; applied server-side.
10 /// Invalid glob returns HTTP 400.
11 pub pattern: Option<String>,
12 /// Lower-bound timestamp (images created at or after this point).
13 /// Inclusive.
14 pub since: Option<NaiveDateTime>,
15 /// Upper-bound timestamp (images created at or before this point).
16 /// Inclusive.
17 pub until: Option<NaiveDateTime>,
18 /// Cap on the number of images returned (the newest N; listed oldest
19 /// first, newest last).
20 pub limit: Option<u8>,
21}