#[non_exhaustive]pub struct ClearSuggestionFeatureConfigOperationMetadata {
pub conversation_profile: String,
pub participant_role: Role,
pub suggestion_feature_type: Type,
pub create_time: Option<Timestamp>,
/* private fields */
}Available on crate feature
conversation-profiles only.Expand description
Metadata for a ConversationProfiles.ClearSuggestionFeatureConfig operation.
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: StringThe resource name of the conversation profile. 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.
create_time: Option<Timestamp>Timestamp whe the request was created. The time is measured on server side.
Implementations§
Source§impl ClearSuggestionFeatureConfigOperationMetadata
impl ClearSuggestionFeatureConfigOperationMetadata
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 = ClearSuggestionFeatureConfigOperationMetadata::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 = ClearSuggestionFeatureConfigOperationMetadata::new().set_participant_role(Role::HumanAgent);
let x1 = ClearSuggestionFeatureConfigOperationMetadata::new().set_participant_role(Role::AutomatedAgent);
let x2 = ClearSuggestionFeatureConfigOperationMetadata::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 = ClearSuggestionFeatureConfigOperationMetadata::new().set_suggestion_feature_type(Type::ArticleSuggestion);
let x1 = ClearSuggestionFeatureConfigOperationMetadata::new().set_suggestion_feature_type(Type::Faq);
let x2 = ClearSuggestionFeatureConfigOperationMetadata::new().set_suggestion_feature_type(Type::SmartReply);Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ClearSuggestionFeatureConfigOperationMetadata::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ClearSuggestionFeatureConfigOperationMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = ClearSuggestionFeatureConfigOperationMetadata::new().set_or_clear_create_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for ClearSuggestionFeatureConfigOperationMetadata
impl Clone for ClearSuggestionFeatureConfigOperationMetadata
Source§fn clone(&self) -> ClearSuggestionFeatureConfigOperationMetadata
fn clone(&self) -> ClearSuggestionFeatureConfigOperationMetadata
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 ClearSuggestionFeatureConfigOperationMetadata
impl Default for ClearSuggestionFeatureConfigOperationMetadata
Source§fn default() -> ClearSuggestionFeatureConfigOperationMetadata
fn default() -> ClearSuggestionFeatureConfigOperationMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClearSuggestionFeatureConfigOperationMetadata
impl PartialEq for ClearSuggestionFeatureConfigOperationMetadata
Source§fn eq(&self, other: &ClearSuggestionFeatureConfigOperationMetadata) -> bool
fn eq(&self, other: &ClearSuggestionFeatureConfigOperationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClearSuggestionFeatureConfigOperationMetadata
Auto Trait Implementations§
impl Freeze for ClearSuggestionFeatureConfigOperationMetadata
impl RefUnwindSafe for ClearSuggestionFeatureConfigOperationMetadata
impl Send for ClearSuggestionFeatureConfigOperationMetadata
impl Sync for ClearSuggestionFeatureConfigOperationMetadata
impl Unpin for ClearSuggestionFeatureConfigOperationMetadata
impl UnwindSafe for ClearSuggestionFeatureConfigOperationMetadata
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