#[non_exhaustive]pub struct KnowledgeIngestInput {Show 14 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub upload_id: String,
pub source_uri: String,
pub title: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<String>>,
pub metadata: Option<HashMap<String, Value>>,
pub expected_revision: Option<Option<Integer>>,
pub allow_partial: Option<bool>,
pub options: Option<KnowledgeIngestOptions>,
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>§upload_id: String§source_uri: String§title: Option<String>§description: Option<String>§metadata: Option<HashMap<String, Value>>§expected_revision: Option<Option<Integer>>§allow_partial: Option<bool>§options: Option<KnowledgeIngestOptions>§agent: Option<String>§session_id: Option<String>§source_class: Option<Option<String>>Implementations§
Source§impl KnowledgeIngestInput
impl KnowledgeIngestInput
pub fn new(upload_id: impl Into<String>, source_uri: 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 expected_revision(self, expected_revision: impl Into<Integer>) -> Self
pub fn expected_revision_null(self) -> Self
pub fn allow_partial(self, allow_partial: bool) -> Self
pub fn options(self, options: KnowledgeIngestOptions) -> 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<KnowledgeIngestOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for KnowledgeIngestInput
impl Clone for KnowledgeIngestInput
Source§impl Debug for KnowledgeIngestInput
impl Debug for KnowledgeIngestInput
Source§impl<'de> Deserialize<'de> for KnowledgeIngestInput
impl<'de> Deserialize<'de> for KnowledgeIngestInput
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 KnowledgeIngestInput
impl PartialEq for KnowledgeIngestInput
Source§impl Serialize for KnowledgeIngestInput
impl Serialize for KnowledgeIngestInput
impl StructuralPartialEq for KnowledgeIngestInput
Auto Trait Implementations§
impl Forget for KnowledgeIngestInput
impl Freeze for KnowledgeIngestInput
impl Move for KnowledgeIngestInput
impl RefUnwindSafe for KnowledgeIngestInput
impl Send for KnowledgeIngestInput
impl Sync for KnowledgeIngestInput
impl Unpin for KnowledgeIngestInput
impl UnsafeUnpin for KnowledgeIngestInput
impl UnwindSafe for KnowledgeIngestInput
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