pub struct KnowledgeUpdateBody {
pub embedding_id: Option<EmbeddingId>,
pub embedding_model: Option<String>,
pub contextual: Option<u8>,
pub name: Option<String>,
pub description: Option<String>,
pub background: Option<BackgroundColor>,
pub icon: Option<KnowledgeIcon>,
pub callback_url: Option<String>,
pub callback_header: Option<BTreeMap<String, String>>,
}Expand description
Update body for editing a knowledge base
Fields§
§embedding_id: Option<EmbeddingId>Embedding model ID (3, 11, or 12).
embedding_model: Option<String>Embedding model name. When embedding_id is also set, both values must
identify the same model.
contextual: Option<u8>Contextual retrieval flag (0 or 1).
name: Option<String>Knowledge base name
description: Option<String>Knowledge base description
background: Option<BackgroundColor>Background color
icon: Option<KnowledgeIcon>Icon name
callback_url: Option<String>Callback URL when rebuilding is required
callback_header: Option<BTreeMap<String, String>>Callback headers as key-value
Trait Implementations§
Source§impl Clone for KnowledgeUpdateBody
impl Clone for KnowledgeUpdateBody
Source§fn clone(&self) -> KnowledgeUpdateBody
fn clone(&self) -> KnowledgeUpdateBody
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 KnowledgeUpdateBody
impl Debug for KnowledgeUpdateBody
Source§impl Default for KnowledgeUpdateBody
impl Default for KnowledgeUpdateBody
Source§fn default() -> KnowledgeUpdateBody
fn default() -> KnowledgeUpdateBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KnowledgeUpdateBody
impl<'de> Deserialize<'de> for KnowledgeUpdateBody
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 KnowledgeUpdateBody
impl Serialize for KnowledgeUpdateBody
Source§impl Validate for KnowledgeUpdateBody
impl Validate for KnowledgeUpdateBody
Source§impl<'v_a> ValidateArgs<'v_a> for KnowledgeUpdateBody
impl<'v_a> ValidateArgs<'v_a> for KnowledgeUpdateBody
Auto Trait Implementations§
impl Freeze for KnowledgeUpdateBody
impl RefUnwindSafe for KnowledgeUpdateBody
impl Send for KnowledgeUpdateBody
impl Sync for KnowledgeUpdateBody
impl Unpin for KnowledgeUpdateBody
impl UnsafeUnpin for KnowledgeUpdateBody
impl UnwindSafe for KnowledgeUpdateBody
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