#[non_exhaustive]pub struct ChatEngineMetadata {
pub dialogflow_agent: String,
/* private fields */
}Available on crate feature
engine-service only.Expand description
Additional information of a Chat Engine. Fields in this message are output only.
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.dialogflow_agent: StringThe resource name of a Dialogflow agent, that this Chat Engine refers to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.
Implementations§
Source§impl ChatEngineMetadata
impl ChatEngineMetadata
pub fn new() -> Self
Sourcepub fn set_dialogflow_agent<T: Into<String>>(self, v: T) -> Self
pub fn set_dialogflow_agent<T: Into<String>>(self, v: T) -> Self
Sets the value of dialogflow_agent.
§Example
ⓘ
let x = ChatEngineMetadata::new().set_dialogflow_agent("example");Trait Implementations§
Source§impl Clone for ChatEngineMetadata
impl Clone for ChatEngineMetadata
Source§fn clone(&self) -> ChatEngineMetadata
fn clone(&self) -> ChatEngineMetadata
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 ChatEngineMetadata
impl Debug for ChatEngineMetadata
Source§impl Default for ChatEngineMetadata
impl Default for ChatEngineMetadata
Source§fn default() -> ChatEngineMetadata
fn default() -> ChatEngineMetadata
Returns the “default value” for a type. Read more
Source§impl Message for ChatEngineMetadata
impl Message for ChatEngineMetadata
Source§impl PartialEq for ChatEngineMetadata
impl PartialEq for ChatEngineMetadata
impl StructuralPartialEq for ChatEngineMetadata
Auto Trait Implementations§
impl Freeze for ChatEngineMetadata
impl RefUnwindSafe for ChatEngineMetadata
impl Send for ChatEngineMetadata
impl Sync for ChatEngineMetadata
impl Unpin for ChatEngineMetadata
impl UnwindSafe for ChatEngineMetadata
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