pub struct SimpleFooterDataProvider { /* private fields */ }Expand description
Simple footer data provider implementation
Implementations§
Sourcepub fn with_model(self, model: Option<String>) -> Self
pub fn with_model(self, model: Option<String>) -> Self
Set the model name
Sourcepub fn with_git_branch(self, branch: Option<String>) -> Self
pub fn with_git_branch(self, branch: Option<String>) -> Self
Set the git branch
Sourcepub fn with_tokens(self, input: u32, output: u32) -> Self
pub fn with_tokens(self, input: u32, output: u32) -> Self
Set token counts
Sourcepub fn with_providers(self, count: usize) -> Self
pub fn with_providers(self, count: usize) -> Self
Set the available provider count
Sourcepub fn update_tokens(&mut self, input: u32, output: u32)
pub fn update_tokens(&mut self, input: u32, output: u32)
Update token counts
Sourcepub fn set_extension_status(&mut self, key: &str, status: Option<&str>)
pub fn set_extension_status(&mut self, key: &str, status: Option<&str>)
Add an extension status
Trait Implementations§
Get the current footer data
Source§fn get_model_name(&self) -> Option<String>
fn get_model_name(&self) -> Option<String>
Get the model name
Source§fn get_git_branch(&self) -> Option<String>
fn get_git_branch(&self) -> Option<String>
Get git branch
Source§fn get_token_counts(&self) -> (u32, u32)
fn get_token_counts(&self) -> (u32, u32)
Get token counts
Source§fn get_session_duration(&self) -> Duration
fn get_session_duration(&self) -> Duration
Get session duration
Source§fn get_keybinding_hints(&self) -> Vec<KeybindingHint>
fn get_keybinding_hints(&self) -> Vec<KeybindingHint>
Get keybinding hints
Auto Trait Implementations§
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().