pub struct SnapshotFilter {
pub source_host: Option<String>,
pub tags: BTreeMap<String, String>,
pub path_substr: Option<String>,
pub since: Option<Span>,
pub limit: Option<usize>,
}Expand description
Filter criteria used by listing/restore/mount.
Fields§
§source_host: Option<String>None means “any host”. Some(name) filters source.host == name.
All entries must match.
path_substr: Option<String>Source path must contain this substring (case-insensitive).
since: Option<Span>Snapshot’s taken_at must be within this Span from now.
limit: Option<usize>Cap to the N most recent snapshots after the other filters apply.
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotFilter
impl Clone for SnapshotFilter
Source§fn clone(&self) -> SnapshotFilter
fn clone(&self) -> SnapshotFilter
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 SnapshotFilter
impl Debug for SnapshotFilter
Source§impl Default for SnapshotFilter
impl Default for SnapshotFilter
Source§fn default() -> SnapshotFilter
fn default() -> SnapshotFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SnapshotFilter
impl RefUnwindSafe for SnapshotFilter
impl Send for SnapshotFilter
impl Sync for SnapshotFilter
impl Unpin for SnapshotFilter
impl UnsafeUnpin for SnapshotFilter
impl UnwindSafe for SnapshotFilter
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