pub struct DirectoryLoader { /* private fields */ }Expand description
Loads documents from files in a directory.
By default, only reads files in the top-level directory.
Use with_recursive(true) to include subdirectories.
Use with_glob(pattern) to filter by file extension (e.g., “*.txt”).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirectoryLoader
impl RefUnwindSafe for DirectoryLoader
impl Send for DirectoryLoader
impl Sync for DirectoryLoader
impl Unpin for DirectoryLoader
impl UnsafeUnpin for DirectoryLoader
impl UnwindSafe for DirectoryLoader
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