#[non_exhaustive]pub struct ToolsetTool {
pub toolset: String,
pub operation_id: String,
pub confirmation_requirement: ConfirmationRequirement,
/* private fields */
}Available on crate features
conversations or generator-evaluations or generators only.Expand description
A tool that is created from a toolset.
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.toolset: StringRequired. The name of the toolset to retrieve the schema for.
Format:
projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}
operation_id: StringOptional. The operationId field of the OpenAPI endpoint. The operationId must be present in the toolset’s definition.
confirmation_requirement: ConfirmationRequirementOptional. Indicates whether the tool requires human confirmation.
Implementations§
Source§impl ToolsetTool
impl ToolsetTool
Sourcepub fn set_toolset<T: Into<String>>(self, v: T) -> Self
pub fn set_toolset<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
pub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_confirmation_requirement<T: Into<ConfirmationRequirement>>(
self,
v: T,
) -> Self
pub fn set_confirmation_requirement<T: Into<ConfirmationRequirement>>( self, v: T, ) -> Self
Sets the value of confirmation_requirement.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::tool::ConfirmationRequirement;
let x0 = ToolsetTool::new().set_confirmation_requirement(ConfirmationRequirement::Required);
let x1 = ToolsetTool::new().set_confirmation_requirement(ConfirmationRequirement::NotRequired);Trait Implementations§
Source§impl Clone for ToolsetTool
impl Clone for ToolsetTool
Source§fn clone(&self) -> ToolsetTool
fn clone(&self) -> ToolsetTool
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 ToolsetTool
impl Debug for ToolsetTool
Source§impl Default for ToolsetTool
impl Default for ToolsetTool
Source§fn default() -> ToolsetTool
fn default() -> ToolsetTool
Returns the “default value” for a type. Read more
Source§impl Message for ToolsetTool
impl Message for ToolsetTool
Source§impl PartialEq for ToolsetTool
impl PartialEq for ToolsetTool
impl StructuralPartialEq for ToolsetTool
Auto Trait Implementations§
impl Freeze for ToolsetTool
impl RefUnwindSafe for ToolsetTool
impl Send for ToolsetTool
impl Sync for ToolsetTool
impl Unpin for ToolsetTool
impl UnsafeUnpin for ToolsetTool
impl UnwindSafe for ToolsetTool
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