pub struct SelectParams {
pub limit: Option<usize>,
pub since: Option<RecencySpec>,
pub min_newest: usize,
pub now: u64,
pub last_run: Option<u64>,
}Expand description
Parameters for clip selection.
Fields§
§limit: Option<usize>Keep at most the N most recent clips (by created_at).
since: Option<RecencySpec>Keep only clips newer than this spec.
min_newest: usizeAlways retain at least this many newest clips, regardless of the recency filter.
now: u64Current Unix timestamp in seconds; used for relative recency specs.
last_run: Option<u64>Last-run Unix timestamp in seconds; used when since is RecencySpec::LastRun.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SelectParams
impl RefUnwindSafe for SelectParams
impl Send for SelectParams
impl Sync for SelectParams
impl Unpin for SelectParams
impl UnsafeUnpin for SelectParams
impl UnwindSafe for SelectParams
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