pub struct InvocationRecord {
pub command: String,
pub subcommand: String,
pub raw_tokens: u64,
pub filtered_tokens: u64,
pub had_plugin: bool,
pub in_scope: bool,
pub reduced: bool,
pub is_external_plugin: bool,
pub exit_code: i32,
}Expand description
A single invocation record for the usage-history table.
Fields§
§command: String§subcommand: String§raw_tokens: u64§filtered_tokens: u64§had_plugin: boolA filter is registered for this command (regardless of subcommand scope). This is true for both native built-ins and external plugins.
in_scope: boolPlugin applies to this subcommand — i.e. matches its declared list, or plugin declares no subcommand restriction.
reduced: boolFilter actually shrank output (filtered_tokens < raw_tokens).
is_external_plugin: boolThe handler is an external plugin from ~/.lowfat/plugins/ rather than
a native built-in compiled into the binary. Used to label the source
column in lowfat history so users can tell what they own vs what ships.
exit_code: i32Auto Trait Implementations§
impl Freeze for InvocationRecord
impl RefUnwindSafe for InvocationRecord
impl Send for InvocationRecord
impl Sync for InvocationRecord
impl Unpin for InvocationRecord
impl UnsafeUnpin for InvocationRecord
impl UnwindSafe for InvocationRecord
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