#[non_exhaustive]pub struct KnowledgeSourceAddInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub name: String,
pub kind: String,
pub items: Option<Option<Vec<HashMap<String, Value>>>>,
pub links: Option<Option<Vec<String>>>,
pub config: Option<Option<HashMap<String, Value>>>,
pub include: Option<Option<Vec<String>>>,
pub credential_mode: Option<KnowledgeSourceAddInputCredentialMode>,
pub credential: Option<String>,
pub dry_run: Option<bool>,
}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§kind: String§items: Option<Option<Vec<HashMap<String, Value>>>>§links: Option<Option<Vec<String>>>§config: Option<Option<HashMap<String, Value>>>§include: Option<Option<Vec<String>>>§credential_mode: Option<KnowledgeSourceAddInputCredentialMode>§credential: Option<String>§dry_run: Option<bool>Implementations§
Source§impl KnowledgeSourceAddInput
impl KnowledgeSourceAddInput
pub fn new(name: impl Into<String>, kind: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn items(self, items: Vec<HashMap<String, Value>>) -> Self
pub fn items_null(self) -> Self
pub fn links(self, links: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn links_null(self) -> Self
pub fn config(self, config: HashMap<String, Value>) -> Self
pub fn config_null(self) -> Self
pub fn include( self, include: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn include_null(self) -> Self
pub fn credential_mode( self, credential_mode: KnowledgeSourceAddInputCredentialMode, ) -> Self
pub fn credential(self, credential: impl Into<String>) -> Self
pub fn dry_run(self, dry_run: bool) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<KnowledgeSourceAddOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for KnowledgeSourceAddInput
impl Clone for KnowledgeSourceAddInput
Source§impl Debug for KnowledgeSourceAddInput
impl Debug for KnowledgeSourceAddInput
Source§impl<'de> Deserialize<'de> for KnowledgeSourceAddInput
impl<'de> Deserialize<'de> for KnowledgeSourceAddInput
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 KnowledgeSourceAddInput
impl PartialEq for KnowledgeSourceAddInput
Source§impl Serialize for KnowledgeSourceAddInput
impl Serialize for KnowledgeSourceAddInput
impl StructuralPartialEq for KnowledgeSourceAddInput
Auto Trait Implementations§
impl Forget for KnowledgeSourceAddInput
impl Freeze for KnowledgeSourceAddInput
impl Move for KnowledgeSourceAddInput
impl RefUnwindSafe for KnowledgeSourceAddInput
impl Send for KnowledgeSourceAddInput
impl Sync for KnowledgeSourceAddInput
impl Unpin for KnowledgeSourceAddInput
impl UnsafeUnpin for KnowledgeSourceAddInput
impl UnwindSafe for KnowledgeSourceAddInput
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