pub struct KnowledgeItem {
pub id: Option<String>,
pub embedding_id: Option<u64>,
pub name: Option<String>,
pub description: Option<String>,
pub background: Option<String>,
pub icon: Option<String>,
pub document_size: Option<u64>,
pub length: Option<u64>,
pub word_num: Option<u64>,
}Expand description
Knowledge base item
Fields§
§id: Option<String>Knowledge base id
embedding_id: Option<u64>Embedding model id
name: Option<String>Knowledge base name
description: Option<String>Knowledge base description
background: Option<String>Background color
icon: Option<String>Icon URL
document_size: Option<u64>Number of documents
length: Option<u64>Total tokenized length
word_num: Option<u64>Total words
Trait Implementations§
Source§impl Clone for KnowledgeItem
impl Clone for KnowledgeItem
Source§fn clone(&self) -> KnowledgeItem
fn clone(&self) -> KnowledgeItem
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 moreSource§impl Debug for KnowledgeItem
impl Debug for KnowledgeItem
Source§impl<'de> Deserialize<'de> for KnowledgeItem
impl<'de> Deserialize<'de> for KnowledgeItem
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
Source§impl Serialize for KnowledgeItem
impl Serialize for KnowledgeItem
Source§impl Validate for KnowledgeItem
impl Validate for KnowledgeItem
Source§impl<'v_a> ValidateArgs<'v_a> for KnowledgeItem
impl<'v_a> ValidateArgs<'v_a> for KnowledgeItem
Auto Trait Implementations§
impl Freeze for KnowledgeItem
impl RefUnwindSafe for KnowledgeItem
impl Send for KnowledgeItem
impl Sync for KnowledgeItem
impl Unpin for KnowledgeItem
impl UnwindSafe for KnowledgeItem
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