#[non_exhaustive]pub struct CesAppSpec {
pub ces_app: String,
pub confirmation_requirement: ConfirmationRequirement,
/* private fields */
}Available on crate features
conversations or generator-evaluations or generators only.Expand description
Spec of CES app that the generator can choose from.
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.ces_app: StringOptional. Format: projects/<Project ID>/locations/<Location ID>/apps/<app ID>.
confirmation_requirement: ConfirmationRequirementOptional. Indicates whether the app requires human confirmation.
Implementations§
Source§impl CesAppSpec
impl CesAppSpec
Sourcepub fn set_ces_app<T: Into<String>>(self, v: T) -> Self
pub fn set_ces_app<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 = CesAppSpec::new().set_confirmation_requirement(ConfirmationRequirement::Required);
let x1 = CesAppSpec::new().set_confirmation_requirement(ConfirmationRequirement::NotRequired);Trait Implementations§
Source§impl Clone for CesAppSpec
impl Clone for CesAppSpec
Source§fn clone(&self) -> CesAppSpec
fn clone(&self) -> CesAppSpec
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 CesAppSpec
impl Debug for CesAppSpec
Source§impl Default for CesAppSpec
impl Default for CesAppSpec
Source§fn default() -> CesAppSpec
fn default() -> CesAppSpec
Returns the “default value” for a type. Read more
Source§impl PartialEq for CesAppSpec
impl PartialEq for CesAppSpec
impl StructuralPartialEq for CesAppSpec
Auto Trait Implementations§
impl Freeze for CesAppSpec
impl RefUnwindSafe for CesAppSpec
impl Send for CesAppSpec
impl Sync for CesAppSpec
impl Unpin for CesAppSpec
impl UnsafeUnpin for CesAppSpec
impl UnwindSafe for CesAppSpec
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