#[non_exhaustive]pub struct UpdateKnowledgeBaseRequest {
pub knowledge_base: Option<KnowledgeBase>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Available on crate feature
knowledge-bases only.Expand description
Request message for KnowledgeBases.UpdateKnowledgeBase.
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.knowledge_base: Option<KnowledgeBase>Required. The knowledge base to update.
update_mask: Option<FieldMask>Optional. Not specified means update all.
Currently, only display_name can be updated, an InvalidArgument will be
returned for attempting to update other fields.
Implementations§
Source§impl UpdateKnowledgeBaseRequest
impl UpdateKnowledgeBaseRequest
pub fn new() -> Self
Sourcepub fn set_knowledge_base<T>(self, v: T) -> Selfwhere
T: Into<KnowledgeBase>,
pub fn set_knowledge_base<T>(self, v: T) -> Selfwhere
T: Into<KnowledgeBase>,
Sets the value of knowledge_base.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::KnowledgeBase;
let x = UpdateKnowledgeBaseRequest::new().set_knowledge_base(KnowledgeBase::default()/* use setters */);Sourcepub fn set_or_clear_knowledge_base<T>(self, v: Option<T>) -> Selfwhere
T: Into<KnowledgeBase>,
pub fn set_or_clear_knowledge_base<T>(self, v: Option<T>) -> Selfwhere
T: Into<KnowledgeBase>,
Sets or clears the value of knowledge_base.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::KnowledgeBase;
let x = UpdateKnowledgeBaseRequest::new().set_or_clear_knowledge_base(Some(KnowledgeBase::default()/* use setters */));
let x = UpdateKnowledgeBaseRequest::new().set_or_clear_knowledge_base(None::<KnowledgeBase>);Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateKnowledgeBaseRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateKnowledgeBaseRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateKnowledgeBaseRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateKnowledgeBaseRequest
impl Clone for UpdateKnowledgeBaseRequest
Source§fn clone(&self) -> UpdateKnowledgeBaseRequest
fn clone(&self) -> UpdateKnowledgeBaseRequest
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 UpdateKnowledgeBaseRequest
impl Debug for UpdateKnowledgeBaseRequest
Source§impl Default for UpdateKnowledgeBaseRequest
impl Default for UpdateKnowledgeBaseRequest
Source§fn default() -> UpdateKnowledgeBaseRequest
fn default() -> UpdateKnowledgeBaseRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateKnowledgeBaseRequest
impl Message for UpdateKnowledgeBaseRequest
impl StructuralPartialEq for UpdateKnowledgeBaseRequest
Auto Trait Implementations§
impl Freeze for UpdateKnowledgeBaseRequest
impl RefUnwindSafe for UpdateKnowledgeBaseRequest
impl Send for UpdateKnowledgeBaseRequest
impl Sync for UpdateKnowledgeBaseRequest
impl Unpin for UpdateKnowledgeBaseRequest
impl UnsafeUnpin for UpdateKnowledgeBaseRequest
impl UnwindSafe for UpdateKnowledgeBaseRequest
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