pub struct App {Show 20 fields
pub session: Session,
pub transcript: Vec<Line<'static>>,
pub input: String,
pub cursor: usize,
pub history: Vec<String>,
pub scroll: usize,
pub client: Option<Client>,
pub mock: bool,
pub pending: bool,
pub spinner: usize,
pub lesson: usize,
pub lesson_open: bool,
pub suggested: Option<String>,
pub threshold: f64,
pub timeout: Option<Duration>,
pub rates: Option<Rates>,
pub last_raw: Option<String>,
pub builder: Option<Builder>,
pub sketch: Option<Editor>,
pub quit: bool,
/* private fields */
}Fields§
§session: Session§transcript: Vec<Line<'static>>§input: String§cursor: usize§history: Vec<String>§scroll: usizeLines scrolled back from the bottom; 0 follows the tail.
client: Option<Client>§mock: bool§pending: bool§spinner: usize§lesson: usize§lesson_open: bool§suggested: Option<String>§threshold: f64§timeout: Option<Duration>§rates: Option<Rates>Dollars per million tokens, from JEV_PRICE or :cost; None counts tokens only.
last_raw: Option<String>§builder: Option<Builder>Some while builder mode is open.
sketch: Option<Editor>Some while sketch mode is open.
quit: boolImplementations§
Auto Trait Implementations§
impl !RefUnwindSafe for App
impl !UnwindSafe for App
impl Freeze for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
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> 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