Struct Banner
pub struct Banner<'a> {
pub codelore_version: &'a str,
pub gix_version: &'a str,
pub duckdb_version: &'a str,
pub repo_path: String,
pub branch: Option<String>,
pub head_short: Option<String>,
pub analysis: &'a str,
pub options_summary: String,
pub preflight: Preflight,
}Expand description
Data the banner needs to render. Built by the caller (CLI) from Options +
GixRepo + pre-flight results; the banner module itself stays free of repo
and clap imports so it can be snapshot-tested without spinning either up.
Fields§
§codelore_version: &'a str§gix_version: &'a str§duckdb_version: &'a str§repo_path: String§branch: Option<String>None when HEAD is detached or the repo is unopened.
head_short: Option<String>Short (7-char) HEAD SHA. None for a fresh repo with no commits.
analysis: &'a str§options_summary: StringOne-line tuning summary, e.g. "min-revs=5, rows=10".
preflight: PreflightAggregate of the pre-flight checks. Ready → green status; anything
else → red status with a fix-hint line.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Banner<'a>
impl<'a> RefUnwindSafe for Banner<'a>
impl<'a> Send for Banner<'a>
impl<'a> Sync for Banner<'a>
impl<'a> Unpin for Banner<'a>
impl<'a> UnsafeUnpin for Banner<'a>
impl<'a> UnwindSafe for Banner<'a>
Blanket Implementations§
impl<T> Allocation for T
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more