pub struct JsonLoader { /* private fields */ }Expand description
Loads documents from a JSON string.
- If the JSON is an array of objects, each object becomes a Document.
The
content_keyfield is used to extract the document content (default: “content”). Theid_keyfield is used to extract the document id (default: “id”). - If the JSON is a single object, it becomes one Document.
Implementations§
Source§impl JsonLoader
impl JsonLoader
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonLoader
impl RefUnwindSafe for JsonLoader
impl Send for JsonLoader
impl Sync for JsonLoader
impl Unpin for JsonLoader
impl UnsafeUnpin for JsonLoader
impl UnwindSafe for JsonLoader
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