pub struct Observed {Show 14 fields
pub target: Utf8PathBuf,
pub flake: Presence,
pub lock: Presence,
pub scan: Scan,
pub flake_text: Option<String>,
pub locked_rev: Option<String>,
pub locked_ref: Option<String>,
pub managers: Vec<Entry>,
pub wired: Option<Manager>,
pub envrc: Presence,
pub envrc_sync: bool,
pub pending: bool,
pub stamp: Option<String>,
pub leftovers: Vec<Leftover>,
}Expand description
Everything the offline pass reads from a target and this host’s state root. It spawns nothing and fetches nothing.
Fields§
§target: Utf8PathBufThe target, canonical.
flake: PresenceWhether flake.nix exists.
lock: PresenceWhether flake.lock exists.
scan: ScanWhat the pin matcher found in flake.nix.
flake_text: Option<String>The flake.nix text, where the file read.
locked_rev: Option<String>The locked commit of the release-kit node, where the lock names one.
locked_ref: Option<String>The locked ref of the release-kit node, where the lock names one.
managers: Vec<Entry>One entry per manager, in the closed order, absent ones included.
wired: Option<Manager>The one manager whose file names release-kit, where exactly one does.
envrc: PresenceWhether .envrc exists. Direnv is not a manager: it loads a
shell and pins nothing, so the file is reported outside the list.
envrc_sync: boolWhether .envrc carries the sync line.
pending: boolWhether a transaction marker for this checkout survives.
stamp: Option<String>The day of the last sync attempt for this checkout, where stamped.
leftovers: Vec<Leftover>What a predecessor bump mechanism left in the target.
Implementations§
Source§impl Observed
impl Observed
Sourcepub const fn pin_tag(&self) -> Option<&str>
pub const fn pin_tag(&self) -> Option<&str>
The pinned tag, where the scan found exactly one pin.
Sourcepub fn state(&self) -> &'static str
pub fn state(&self) -> &'static str
The rollup state, first match wins. It describes and never judges: every state exits 0, and the verbs that act read the entries rather than this word.
Sourcepub fn flake_entry(&self) -> Option<&Entry>
pub fn flake_entry(&self) -> Option<&Entry>
The flake manager’s entry: always present in the list.