Skip to main content

manta_shared/shared/params/
configuration.rs

1//! Parameters for `GET /configurations`.
2
3use chrono::NaiveDateTime;
4
5/// Typed parameters for fetching CFS configurations.
6pub struct GetConfigurationParams {
7  /// Exact configuration name.
8  pub name: Option<String>,
9  /// Glob pattern matched against configuration names; mutually
10  /// exclusive with `name`.
11  pub pattern: Option<String>,
12  /// HSM group whose associated configurations should be returned.
13  pub hsm_group: Option<String>,
14  /// Operator default from `cli.toml`'s `parent_hsm_group`, used
15  /// as a fallback for `hsm_group`.
16  pub settings_hsm_group_name: Option<String>,
17  /// Lower-bound timestamp (configurations last updated at or after
18  /// this point).
19  pub since: Option<NaiveDateTime>,
20  /// Upper-bound timestamp (configurations last updated at or before
21  /// this point).
22  pub until: Option<NaiveDateTime>,
23  /// Cap on the number of configurations returned (most recent first).
24  pub limit: Option<u8>,
25}