pub struct StatusBarData {
pub cwd: String,
pub model_name: String,
pub context_used: i64,
pub context_limit: i32,
pub session_id: i64,
pub status_hint: Option<String>,
pub is_waiting: bool,
pub waiting_elapsed: Option<Duration>,
pub input_empty: bool,
pub panels_active: bool,
}Expand description
Data required for rendering the status bar
This struct is updated before each render by the App via StatusBar::update_data.
Fields§
§cwd: StringCurrent working directory
model_name: StringModel name
context_used: i64Context tokens used
context_limit: i32Context token limit
session_id: i64Current session ID
status_hint: Option<String>Status hint from key handler
is_waiting: boolWhether the app is waiting for a response
waiting_elapsed: Option<Duration>Time elapsed since waiting started
input_empty: boolWhether the input is empty
panels_active: boolWhether panels are active (suppress hints)
Trait Implementations§
Source§impl Clone for StatusBarData
impl Clone for StatusBarData
Source§fn clone(&self) -> StatusBarData
fn clone(&self) -> StatusBarData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StatusBarData
impl Default for StatusBarData
Source§fn default() -> StatusBarData
fn default() -> StatusBarData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatusBarData
impl RefUnwindSafe for StatusBarData
impl Send for StatusBarData
impl Sync for StatusBarData
impl Unpin for StatusBarData
impl UnwindSafe for StatusBarData
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> 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