pub struct ExportModalState {Show 16 fields
pub focused: ExportField,
pub output_dir: PathBuf,
pub output_dir_editing: bool,
pub output_dir_buffer: String,
pub filename_preview: String,
pub include_tools: bool,
pub encrypt: bool,
pub password: String,
pub password_visible: bool,
pub show_timestamps: bool,
pub progress: ExportProgress,
pub agent_name: String,
pub workspace: String,
pub timestamp: String,
pub message_count: usize,
pub title_preview: String,
}Expand description
State for the export modal.
Fields§
§focused: ExportFieldCurrently focused field.
output_dir: PathBufOutput directory (defaults to cwd).
output_dir_editing: boolUser is editing the output directory path.
output_dir_buffer: StringTemporary edit buffer for output directory.
filename_preview: StringGenerated filename preview.
include_tools: boolInclude tool calls in export.
encrypt: boolEnable encryption.
password: StringPassword for encryption (only used if encrypt is true).
password_visible: boolShow password characters (toggle visibility).
show_timestamps: boolShow message timestamps.
progress: ExportProgressExport progress state.
agent_name: StringSession metadata for display.
workspace: String§timestamp: String§message_count: usize§title_preview: StringImplementations§
Source§impl ExportModalState
impl ExportModalState
Sourcepub fn from_hit(hit: &SearchHit, view: &ConversationView) -> Self
pub fn from_hit(hit: &SearchHit, view: &ConversationView) -> Self
Create new export modal state from a search hit and conversation view.
Sourcepub fn next_field(&mut self)
pub fn next_field(&mut self)
Navigate to next field.
Sourcepub fn prev_field(&mut self)
pub fn prev_field(&mut self)
Navigate to previous field.
Sourcepub fn toggle_current(&mut self)
pub fn toggle_current(&mut self)
Toggle the current checkbox field or start editing text fields.
Sourcepub fn output_dir_push(&mut self, c: char)
pub fn output_dir_push(&mut self, c: char)
Add character to output directory buffer.
Sourcepub fn output_dir_pop(&mut self)
pub fn output_dir_pop(&mut self)
Remove last character from output directory buffer.
Sourcepub fn is_editing_text(&self) -> bool
pub fn is_editing_text(&self) -> bool
Check if currently editing a text field.
Sourcepub fn toggle_password_visibility(&mut self)
pub fn toggle_password_visibility(&mut self)
Toggle password visibility.
Sourcepub fn password_push(&mut self, c: char)
pub fn password_push(&mut self, c: char)
Add character to password.
Sourcepub fn password_pop(&mut self)
pub fn password_pop(&mut self)
Remove last character from password.
Sourcepub fn can_export(&self) -> bool
pub fn can_export(&self) -> bool
Check if export is ready (valid configuration).
Sourcepub fn to_export_options(&self) -> ExportOptions
pub fn to_export_options(&self) -> ExportOptions
Get export options from current state.
Sourcepub fn output_path(&self) -> PathBuf
pub fn output_path(&self) -> PathBuf
Get the full output path.
Trait Implementations§
Source§impl Clone for ExportModalState
impl Clone for ExportModalState
Source§fn clone(&self) -> ExportModalState
fn clone(&self) -> ExportModalState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExportModalState
impl Debug for ExportModalState
Auto Trait Implementations§
impl Freeze for ExportModalState
impl RefUnwindSafe for ExportModalState
impl Send for ExportModalState
impl Sync for ExportModalState
impl Unpin for ExportModalState
impl UnsafeUnpin for ExportModalState
impl UnwindSafe for ExportModalState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> 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>
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>
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<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>
ReadEndian::read_from_little_endian().