pub struct KnowledgeDocument {
pub id: String,
pub knowledge_type: u8,
pub custom_separator: Vec<String>,
pub sentence_size: u32,
pub length: u64,
pub word_num: u64,
pub name: String,
pub url: String,
pub embedding_stat: i64,
pub failure: Option<DocumentFailure>,
}Fields§
§id: String§knowledge_type: u8§custom_separator: Vec<String>§sentence_size: u32§length: u64§word_num: u64§name: String§url: String§embedding_stat: i64§failure: Option<DocumentFailure>Trait Implementations§
Source§impl Clone for KnowledgeDocument
impl Clone for KnowledgeDocument
Source§fn clone(&self) -> KnowledgeDocument
fn clone(&self) -> KnowledgeDocument
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 moreSource§impl Debug for KnowledgeDocument
impl Debug for KnowledgeDocument
Source§impl Default for KnowledgeDocument
impl Default for KnowledgeDocument
Source§fn default() -> KnowledgeDocument
fn default() -> KnowledgeDocument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KnowledgeDocument
impl<'de> Deserialize<'de> for KnowledgeDocument
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 KnowledgeDocument
Source§impl PartialEq for KnowledgeDocument
impl PartialEq for KnowledgeDocument
Source§impl Serialize for KnowledgeDocument
impl Serialize for KnowledgeDocument
impl StructuralPartialEq for KnowledgeDocument
Auto Trait Implementations§
impl Freeze for KnowledgeDocument
impl RefUnwindSafe for KnowledgeDocument
impl Send for KnowledgeDocument
impl Sync for KnowledgeDocument
impl Unpin for KnowledgeDocument
impl UnsafeUnpin for KnowledgeDocument
impl UnwindSafe for KnowledgeDocument
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