pub struct FileLoader { /* private fields */ }Expand description
Loads content from a file on disk.
Reads the file contents via tokio::fs::read_to_string and returns a single
Document with the file path as id and the file contents as content.
The source metadata key is set to the file path.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileLoader
impl RefUnwindSafe for FileLoader
impl Send for FileLoader
impl Sync for FileLoader
impl Unpin for FileLoader
impl UnsafeUnpin for FileLoader
impl UnwindSafe for FileLoader
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