#[non_exhaustive]pub struct KnowledgeSourceUpdateInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub name: String,
pub add_items: Option<Vec<HashMap<String, Value>>>,
pub add_links: Option<Vec<String>>,
pub remove_items: Option<Vec<HashMap<String, Value>>>,
pub remove_links: Option<Vec<String>>,
pub include: Option<Option<Vec<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>§name: String§add_items: Option<Vec<HashMap<String, Value>>>§add_links: Option<Vec<String>>§remove_items: Option<Vec<HashMap<String, Value>>>§remove_links: Option<Vec<String>>§include: Option<Option<Vec<String>>>Implementations§
Source§impl KnowledgeSourceUpdateInput
impl KnowledgeSourceUpdateInput
pub fn new(name: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn add_items(self, add_items: Vec<HashMap<String, Value>>) -> Self
pub fn add_links( self, add_links: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn remove_items(self, remove_items: Vec<HashMap<String, Value>>) -> Self
pub fn remove_links( self, remove_links: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn include( self, include: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn include_null(self) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<KnowledgeSourceUpdateOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for KnowledgeSourceUpdateInput
impl Clone for KnowledgeSourceUpdateInput
Source§impl Debug for KnowledgeSourceUpdateInput
impl Debug for KnowledgeSourceUpdateInput
Source§impl<'de> Deserialize<'de> for KnowledgeSourceUpdateInput
impl<'de> Deserialize<'de> for KnowledgeSourceUpdateInput
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
impl StructuralPartialEq for KnowledgeSourceUpdateInput
Auto Trait Implementations§
impl Forget for KnowledgeSourceUpdateInput
impl Freeze for KnowledgeSourceUpdateInput
impl Move for KnowledgeSourceUpdateInput
impl RefUnwindSafe for KnowledgeSourceUpdateInput
impl Send for KnowledgeSourceUpdateInput
impl Sync for KnowledgeSourceUpdateInput
impl Unpin for KnowledgeSourceUpdateInput
impl UnsafeUnpin for KnowledgeSourceUpdateInput
impl UnwindSafe for KnowledgeSourceUpdateInput
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