#[non_exhaustive]pub struct KnowledgeIngestRequest {
pub source_id: Option<String>,
pub title: Option<String>,
pub collection: Option<String>,
pub kind: Option<String>,
pub text: Option<String>,
pub occurred_at: Option<String>,
pub episodes: Option<Vec<Episode>>,
pub metadata: Option<BTreeMap<String, String>>,
pub replace: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_id: Option<String>§title: Option<String>§collection: Option<String>§kind: Option<String>§text: Option<String>§occurred_at: Option<String>§episodes: Option<Vec<Episode>>§metadata: Option<BTreeMap<String, String>>§replace: boolImplementations§
Source§impl KnowledgeIngestRequest
impl KnowledgeIngestRequest
pub fn document(text: impl Into<String>) -> Self
pub fn episodes(episodes: Vec<Episode>) -> Self
pub fn source_id(self, source_id: impl Into<String>) -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn collection(self, collection: impl Into<String>) -> Self
pub fn kind(self, kind: impl Into<String>) -> Self
pub fn occurred_at(self, occurred_at: impl Into<String>) -> Self
pub fn metadata(self, metadata: BTreeMap<String, String>) -> Self
pub fn replace(self, replace: bool) -> Self
Trait Implementations§
Source§impl Clone for KnowledgeIngestRequest
impl Clone for KnowledgeIngestRequest
Source§impl Debug for KnowledgeIngestRequest
impl Debug for KnowledgeIngestRequest
Auto Trait Implementations§
impl Forget for KnowledgeIngestRequest
impl Freeze for KnowledgeIngestRequestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Episode>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for KnowledgeIngestRequest
impl RefUnwindSafe for KnowledgeIngestRequest
impl Send for KnowledgeIngestRequest
impl Sync for KnowledgeIngestRequest
impl Unpin for KnowledgeIngestRequest
impl UnsafeUnpin for KnowledgeIngestRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Episode>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for KnowledgeIngestRequest
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