pub fn latest<'a>(
all: &'a [Observation],
deployment: &str,
) -> Option<&'a Observation>Expand description
The newest observation of deployment, if any. The newest is what a reader judges by;
the older ones are the history of what the deployment has served.
use majordomus_cli::served::latest;
// nothing observed, nothing to judge
assert!(latest(&[], "pages").is_none());