pub struct Input {
pub state: PathBuf,
pub initial: Option<PathBuf>,
pub catalog: Catalog,
pub initialized: bool,
pub page: Page,
pub full: bool,
pub displayed: Option<RunId>,
pub runs: Option<Vec<RunSummary>>,
}Expand description
Everything one snapshot read needs; the caller keeps the catalog between reads.
Fields§
§state: PathBuf§initial: Option<PathBuf>cwd, --repo or --all (None): only the first selection.
catalog: Catalog§initialized: boolFalse before the first accepted snapshot, which picks the initial scope.
page: Page§full: boolRead the database catalog afresh; Git discovery stays cached until Loader::reset.
displayed: Option<RunId>The Run the caller already shows; the reader decodes it again only when it changed.
runs: Option<Vec<RunSummary>>The page the caller already shows, reused while the database is unchanged.
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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