#[non_exhaustive]pub struct ClearSuggestionFeatureConfigRequest {
pub conversation_profile: String,
pub participant_role: Role,
pub suggestion_feature_type: Type,
/* private fields */
}Available on crate feature
conversation-profiles only.Expand description
The request message for ConversationProfiles.ClearSuggestionFeatureConfig.
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.conversation_profile: StringRequired. The Conversation Profile to add or update the suggestion feature
config. Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>.
participant_role: RoleRequired. The participant role to remove the suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
suggestion_feature_type: TypeRequired. The type of the suggestion feature to remove.
Implementations§
Source§impl ClearSuggestionFeatureConfigRequest
impl ClearSuggestionFeatureConfigRequest
pub fn new() -> Self
Sourcepub fn set_conversation_profile<T: Into<String>>(self, v: T) -> Self
pub fn set_conversation_profile<T: Into<String>>(self, v: T) -> Self
Sets the value of conversation_profile.
§Example
ⓘ
let x = ClearSuggestionFeatureConfigRequest::new().set_conversation_profile("example");Sourcepub fn set_participant_role<T: Into<Role>>(self, v: T) -> Self
pub fn set_participant_role<T: Into<Role>>(self, v: T) -> Self
Sets the value of participant_role.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::participant::Role;
let x0 = ClearSuggestionFeatureConfigRequest::new().set_participant_role(Role::HumanAgent);
let x1 = ClearSuggestionFeatureConfigRequest::new().set_participant_role(Role::AutomatedAgent);
let x2 = ClearSuggestionFeatureConfigRequest::new().set_participant_role(Role::EndUser);Sourcepub fn set_suggestion_feature_type<T: Into<Type>>(self, v: T) -> Self
pub fn set_suggestion_feature_type<T: Into<Type>>(self, v: T) -> Self
Sets the value of suggestion_feature_type.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::suggestion_feature::Type;
let x0 = ClearSuggestionFeatureConfigRequest::new().set_suggestion_feature_type(Type::ArticleSuggestion);
let x1 = ClearSuggestionFeatureConfigRequest::new().set_suggestion_feature_type(Type::Faq);
let x2 = ClearSuggestionFeatureConfigRequest::new().set_suggestion_feature_type(Type::SmartReply);Trait Implementations§
Source§impl Clone for ClearSuggestionFeatureConfigRequest
impl Clone for ClearSuggestionFeatureConfigRequest
Source§fn clone(&self) -> ClearSuggestionFeatureConfigRequest
fn clone(&self) -> ClearSuggestionFeatureConfigRequest
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 Default for ClearSuggestionFeatureConfigRequest
impl Default for ClearSuggestionFeatureConfigRequest
Source§fn default() -> ClearSuggestionFeatureConfigRequest
fn default() -> ClearSuggestionFeatureConfigRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClearSuggestionFeatureConfigRequest
impl PartialEq for ClearSuggestionFeatureConfigRequest
Source§fn eq(&self, other: &ClearSuggestionFeatureConfigRequest) -> bool
fn eq(&self, other: &ClearSuggestionFeatureConfigRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClearSuggestionFeatureConfigRequest
Auto Trait Implementations§
impl Freeze for ClearSuggestionFeatureConfigRequest
impl RefUnwindSafe for ClearSuggestionFeatureConfigRequest
impl Send for ClearSuggestionFeatureConfigRequest
impl Sync for ClearSuggestionFeatureConfigRequest
impl Unpin for ClearSuggestionFeatureConfigRequest
impl UnwindSafe for ClearSuggestionFeatureConfigRequest
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