pub struct DataLoaderService { /* private fields */ }
Expand description
Service responsible for loading data from various sources This encapsulates all file loading logic that was previously in the TUI
Implementations§
Source§impl DataLoaderService
impl DataLoaderService
pub fn new(case_insensitive: bool) -> Self
Sourcepub fn load_file(&self, file_path: &str) -> Result<DataLoadResult>
pub fn load_file(&self, file_path: &str) -> Result<DataLoadResult>
Load a file and return a DataView The TUI doesn’t need to know about file types or loading strategies
Sourcepub fn load_with_client(&self, file_path: &str) -> Result<DataLoadResult>
pub fn load_with_client(&self, file_path: &str) -> Result<DataLoadResult>
Load data using CsvApiClient (for additional files)
Sourcepub fn set_case_insensitive(&mut self, case_insensitive: bool)
pub fn set_case_insensitive(&mut self, case_insensitive: bool)
Update configuration
Auto Trait Implementations§
impl Freeze for DataLoaderService
impl RefUnwindSafe for DataLoaderService
impl Send for DataLoaderService
impl Sync for DataLoaderService
impl Unpin for DataLoaderService
impl UnwindSafe for DataLoaderService
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