pub struct BannerInfo<'a> {Show 14 fields
pub version: &'a str,
pub config_path: &'a str,
pub providers: &'a [String],
pub askpass_sources: &'a [String],
pub vault_ssh_info: Option<&'a str>,
pub ssh_version: &'a str,
pub term: &'a str,
pub colorterm: &'a str,
pub level: &'a str,
pub theme: &'a str,
pub hosts: usize,
pub patterns: usize,
pub snippets: usize,
pub proxy_env: &'a str,
}Expand description
Startup banner info. Struct avoids argument-order bugs between &str params.
Fields§
§version: &'a str§config_path: &'a str§providers: &'a [String]§askpass_sources: &'a [String]§vault_ssh_info: Option<&'a str>§ssh_version: &'a str§term: &'a str§colorterm: &'a str§level: &'a str§theme: &'a strTheme currently in effect (loaded from preferences or --theme).
hosts: usizeTotal number of host entries parsed from the SSH config.
patterns: usizeTotal number of patterns (wildcard / multi-alias Host lines).
snippets: usizeTotal number of snippets loaded from the snippet store.
proxy_env: &'a strComma-separated list of env vars that affect proxy behaviour (HTTP_PROXY,
HTTPS_PROXY, NO_PROXY) when any are set. "none" when none are present.
Auto Trait Implementations§
impl<'a> Freeze for BannerInfo<'a>
impl<'a> RefUnwindSafe for BannerInfo<'a>
impl<'a> Send for BannerInfo<'a>
impl<'a> Sync for BannerInfo<'a>
impl<'a> Unpin for BannerInfo<'a>
impl<'a> UnsafeUnpin for BannerInfo<'a>
impl<'a> UnwindSafe for BannerInfo<'a>
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
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