#[repr(i64)]pub enum DocumentSliceType {
TitleParagraph = 1,
QaPair = 2,
Line = 3,
Custom = 5,
Page = 6,
Single = 7,
}Expand description
Slice type (knowledge_type)
Variants§
TitleParagraph = 1
1: Title-paragraph slicing (txt, doc, pdf, url, docx, ppt, pptx, md)
QaPair = 2
2: Q&A slicing (txt, doc, pdf, url, docx, ppt, pptx, md)
Line = 3
3: Line slicing (xls, xlsx, csv)
Custom = 5
5: Custom slicing (txt, doc, pdf, url, docx, ppt, pptx, md)
Page = 6
6: Page slicing (pdf, ppt, pptx)
Single = 7
7: Single slice (xls, xlsx, csv)
Implementations§
Trait Implementations§
Source§impl Clone for DocumentSliceType
impl Clone for DocumentSliceType
Source§fn clone(&self) -> DocumentSliceType
fn clone(&self) -> DocumentSliceType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DocumentSliceType
Source§impl Debug for DocumentSliceType
impl Debug for DocumentSliceType
Source§impl<'de> Deserialize<'de> for DocumentSliceType
impl<'de> Deserialize<'de> for DocumentSliceType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DocumentSliceType
Source§impl PartialEq for DocumentSliceType
impl PartialEq for DocumentSliceType
Source§impl Serialize for DocumentSliceType
impl Serialize for DocumentSliceType
impl StructuralPartialEq for DocumentSliceType
Auto Trait Implementations§
impl Freeze for DocumentSliceType
impl RefUnwindSafe for DocumentSliceType
impl Send for DocumentSliceType
impl Sync for DocumentSliceType
impl Unpin for DocumentSliceType
impl UnsafeUnpin for DocumentSliceType
impl UnwindSafe for DocumentSliceType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.