pub struct DocumentInsert<'a> {Show 18 fields
pub collection: &'a str,
pub path: &'a str,
pub title: &'a str,
pub hash: &'a str,
pub created_at: &'a str,
pub modified_at: &'a str,
pub source_type: &'a str,
pub source_uri: Option<&'a str>,
pub llm_summary: Option<&'a str>,
pub llm_title: Option<&'a str>,
pub llm_keywords: Option<&'a str>,
pub llm_category: Option<&'a str>,
pub llm_intent: Option<&'a str>,
pub llm_concepts: Option<&'a str>,
pub llm_difficulty: Option<&'a str>,
pub llm_queries: Option<&'a str>,
pub llm_metadata_generated_at: Option<&'a str>,
pub llm_model: Option<&'a str>,
}Expand description
Document insert parameters
Fields§
§collection: &'a str§path: &'a str§title: &'a str§hash: &'a str§created_at: &'a str§modified_at: &'a str§source_type: &'a str§source_uri: Option<&'a str>§llm_summary: Option<&'a str>§llm_title: Option<&'a str>§llm_keywords: Option<&'a str>§llm_category: Option<&'a str>§llm_intent: Option<&'a str>§llm_concepts: Option<&'a str>§llm_difficulty: Option<&'a str>§llm_queries: Option<&'a str>§llm_metadata_generated_at: Option<&'a str>§llm_model: Option<&'a str>Implementations§
Source§impl<'a> DocumentInsert<'a>
impl<'a> DocumentInsert<'a>
Sourcepub fn new(
collection: &'a str,
path: &'a str,
title: &'a str,
hash: &'a str,
created_at: &'a str,
modified_at: &'a str,
) -> Self
pub fn new( collection: &'a str, path: &'a str, title: &'a str, hash: &'a str, created_at: &'a str, modified_at: &'a str, ) -> Self
Create new document insert parameters
Sourcepub fn with_source_type(self, source_type: &'a str) -> Self
pub fn with_source_type(self, source_type: &'a str) -> Self
Set source type
Sourcepub fn with_source_uri(self, source_uri: &'a str) -> Self
pub fn with_source_uri(self, source_uri: &'a str) -> Self
Set source URI
Sourcepub fn with_llm_metadata(
self,
metadata: &'a DocumentMetadata,
_metadata_json: &'a str,
model_name: &'a str,
generated_at: &'a str,
) -> Self
pub fn with_llm_metadata( self, metadata: &'a DocumentMetadata, _metadata_json: &'a str, model_name: &'a str, generated_at: &'a str, ) -> Self
Set LLM metadata fields from DocumentMetadata
Trait Implementations§
Source§impl<'a> Clone for DocumentInsert<'a>
impl<'a> Clone for DocumentInsert<'a>
Source§fn clone(&self) -> DocumentInsert<'a>
fn clone(&self) -> DocumentInsert<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for DocumentInsert<'a>
impl<'a> RefUnwindSafe for DocumentInsert<'a>
impl<'a> Send for DocumentInsert<'a>
impl<'a> Sync for DocumentInsert<'a>
impl<'a> Unpin for DocumentInsert<'a>
impl<'a> UnwindSafe for DocumentInsert<'a>
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