pub struct SetParametersArgs {
pub epoch_min_duration: Option<String>,
pub epoch_refresh_frequency: Option<String>,
pub epoch_advance_on_count: Option<i64>,
pub epoch_advance_on_size_mb: Option<i64>,
pub epoch_checkpoint_frequency: Option<i64>,
pub epoch_delete_parallelism: Option<i64>,
pub retention_mode: Option<String>,
pub retention_period: Option<String>,
}Expand description
Flags for kopia repository set-parameters. Modeled on ThrottleArgs: an all-None
builder whose caller skips the invocation entirely when nothing is set.
Durations are pre-rendered strings with a unit, not numbers — kopia’s
time.ParseDuration rejects a bare number (--epoch-min-duration=3600 →
time: missing unit in duration "3600"), so the caller must render them
(kopiur_api::render_go_duration) rather than pass user text through.
Fields§
§epoch_min_duration: Option<String>--epoch-min-duration (e.g. "6h").
epoch_refresh_frequency: Option<String>--epoch-refresh-frequency (e.g. "20m").
epoch_advance_on_count: Option<i64>--epoch-advance-on-count.
epoch_advance_on_size_mb: Option<i64>--epoch-advance-on-size-mb. MiB, despite the flag name — kopia multiplies by
1048576.
epoch_checkpoint_frequency: Option<i64>--epoch-checkpoint-frequency.
epoch_delete_parallelism: Option<i64>--epoch-delete-parallelism.
retention_mode: Option<String>--retention-mode. kopia declares this as an ENUM flag accepting exactly
"none", "GOVERNANCE", or "COMPLIANCE" — note the lowercase none against the
uppercase modes, which is kopia’s own inconsistency, not a typo here. Anything else
is rejected by kopia’s flag parser before the command runs.
retention_period: Option<String>--retention-period (e.g. "720h"). Pre-rendered like the epoch durations. kopia’s
own parser also accepts d, but kopiur never emits it — render_go_duration only
produces h/m/s. Omitted when retention_mode is "none": kopia short-circuits
the disable path before validating, so a period there is meaningless.
Implementations§
Trait Implementations§
Source§impl Clone for SetParametersArgs
impl Clone for SetParametersArgs
Source§fn clone(&self) -> SetParametersArgs
fn clone(&self) -> SetParametersArgs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SetParametersArgs
impl Debug for SetParametersArgs
Source§impl Default for SetParametersArgs
impl Default for SetParametersArgs
Source§fn default() -> SetParametersArgs
fn default() -> SetParametersArgs
impl Eq for SetParametersArgs
Source§impl PartialEq for SetParametersArgs
impl PartialEq for SetParametersArgs
Source§fn eq(&self, other: &SetParametersArgs) -> bool
fn eq(&self, other: &SetParametersArgs) -> bool
self and other values to be equal, and is used by ==.