pub struct UpdateKnowledgeBody {
pub embedding_id: Option<EmbeddingId>,
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<HashMap<String, String>>,
}Expand description
Update body for editing a knowledge base
Fields§
§embedding_id: Option<EmbeddingId>Embedding model id (3 or 11)
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<HashMap<String, String>>Callback headers as key-value
Trait Implementations§
Source§impl Clone for UpdateKnowledgeBody
impl Clone for UpdateKnowledgeBody
Source§fn clone(&self) -> UpdateKnowledgeBody
fn clone(&self) -> UpdateKnowledgeBody
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 UpdateKnowledgeBody
impl Debug for UpdateKnowledgeBody
Source§impl Default for UpdateKnowledgeBody
impl Default for UpdateKnowledgeBody
Source§fn default() -> UpdateKnowledgeBody
fn default() -> UpdateKnowledgeBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateKnowledgeBody
impl<'de> Deserialize<'de> for UpdateKnowledgeBody
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 UpdateKnowledgeBody
impl Serialize for UpdateKnowledgeBody
Source§impl Validate for UpdateKnowledgeBody
impl Validate for UpdateKnowledgeBody
Source§impl<'v_a> ValidateArgs<'v_a> for UpdateKnowledgeBody
impl<'v_a> ValidateArgs<'v_a> for UpdateKnowledgeBody
Auto Trait Implementations§
impl Freeze for UpdateKnowledgeBody
impl RefUnwindSafe for UpdateKnowledgeBody
impl Send for UpdateKnowledgeBody
impl Sync for UpdateKnowledgeBody
impl Unpin for UpdateKnowledgeBody
impl UnwindSafe for UpdateKnowledgeBody
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