#[non_exhaustive]pub struct KnowledgeAddInput {Show 14 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub source_uri: String,
pub content: String,
pub title: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<String>>,
pub metadata: Option<HashMap<String, Value>>,
pub original_bytes_b64: Option<Option<String>>,
pub original_filename: Option<String>,
pub blob_content_type: Option<String>,
pub agent: Option<String>,
pub session_id: Option<String>,
pub source_class: Option<Option<String>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§source_uri: String§content: String§title: Option<String>§description: Option<String>§metadata: Option<HashMap<String, Value>>§original_bytes_b64: Option<Option<String>>§original_filename: Option<String>§blob_content_type: Option<String>§agent: Option<String>§session_id: Option<String>§source_class: Option<Option<String>>Implementations§
Source§impl KnowledgeAddInput
impl KnowledgeAddInput
pub fn new(source_uri: impl Into<String>, content: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn metadata(self, metadata: HashMap<String, Value>) -> Self
pub fn original_bytes_b64(self, original_bytes_b64: impl Into<String>) -> Self
pub fn original_bytes_b64_null(self) -> Self
pub fn original_filename(self, original_filename: impl Into<String>) -> Self
pub fn blob_content_type(self, blob_content_type: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn session_id(self, session_id: impl Into<String>) -> Self
pub fn source_class(self, source_class: impl Into<String>) -> Self
pub fn source_class_null(self) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<KnowledgeAddOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for KnowledgeAddInput
impl Clone for KnowledgeAddInput
Source§impl Debug for KnowledgeAddInput
impl Debug for KnowledgeAddInput
Source§impl<'de> Deserialize<'de> for KnowledgeAddInput
impl<'de> Deserialize<'de> for KnowledgeAddInput
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 PartialEq for KnowledgeAddInput
impl PartialEq for KnowledgeAddInput
Source§impl Serialize for KnowledgeAddInput
impl Serialize for KnowledgeAddInput
impl StructuralPartialEq for KnowledgeAddInput
Auto Trait Implementations§
impl Forget for KnowledgeAddInput
impl Freeze for KnowledgeAddInput
impl Move for KnowledgeAddInput
impl RefUnwindSafe for KnowledgeAddInput
impl Send for KnowledgeAddInput
impl Sync for KnowledgeAddInput
impl Unpin for KnowledgeAddInput
impl UnsafeUnpin for KnowledgeAddInput
impl UnwindSafe for KnowledgeAddInput
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