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>,
}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.
Implementations§
Trait Implementations§
Source§impl Clone for SetParametersArgs
impl Clone for SetParametersArgs
Source§fn clone(&self) -> SetParametersArgs
fn clone(&self) -> SetParametersArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
Source§impl PartialEq for SetParametersArgs
impl PartialEq for SetParametersArgs
Source§fn eq(&self, other: &SetParametersArgs) -> bool
fn eq(&self, other: &SetParametersArgs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SetParametersArgs
impl StructuralPartialEq for SetParametersArgs
Auto Trait Implementations§
impl Freeze for SetParametersArgs
impl RefUnwindSafe for SetParametersArgs
impl Send for SetParametersArgs
impl Sync for SetParametersArgs
impl Unpin for SetParametersArgs
impl UnsafeUnpin for SetParametersArgs
impl UnwindSafe for SetParametersArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more