#[non_exhaustive]pub struct SetSuggestionFeatureConfigOperationMetadata {
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.SetSuggestionFeatureConfig 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 add or update the suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
suggestion_feature_type: TypeRequired. The type of the suggestion feature to add or update.
create_time: Option<Timestamp>Timestamp whe the request was created. The time is measured on server side.
Implementations§
Source§impl SetSuggestionFeatureConfigOperationMetadata
impl SetSuggestionFeatureConfigOperationMetadata
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 = SetSuggestionFeatureConfigOperationMetadata::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 = SetSuggestionFeatureConfigOperationMetadata::new().set_participant_role(Role::HumanAgent);
let x1 = SetSuggestionFeatureConfigOperationMetadata::new().set_participant_role(Role::AutomatedAgent);
let x2 = SetSuggestionFeatureConfigOperationMetadata::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 = SetSuggestionFeatureConfigOperationMetadata::new().set_suggestion_feature_type(Type::ArticleSuggestion);
let x1 = SetSuggestionFeatureConfigOperationMetadata::new().set_suggestion_feature_type(Type::Faq);
let x2 = SetSuggestionFeatureConfigOperationMetadata::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 = SetSuggestionFeatureConfigOperationMetadata::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 = SetSuggestionFeatureConfigOperationMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = SetSuggestionFeatureConfigOperationMetadata::new().set_or_clear_create_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for SetSuggestionFeatureConfigOperationMetadata
impl Clone for SetSuggestionFeatureConfigOperationMetadata
Source§fn clone(&self) -> SetSuggestionFeatureConfigOperationMetadata
fn clone(&self) -> SetSuggestionFeatureConfigOperationMetadata
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 SetSuggestionFeatureConfigOperationMetadata
impl Default for SetSuggestionFeatureConfigOperationMetadata
Source§fn default() -> SetSuggestionFeatureConfigOperationMetadata
fn default() -> SetSuggestionFeatureConfigOperationMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for SetSuggestionFeatureConfigOperationMetadata
impl PartialEq for SetSuggestionFeatureConfigOperationMetadata
Source§fn eq(&self, other: &SetSuggestionFeatureConfigOperationMetadata) -> bool
fn eq(&self, other: &SetSuggestionFeatureConfigOperationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetSuggestionFeatureConfigOperationMetadata
Auto Trait Implementations§
impl Freeze for SetSuggestionFeatureConfigOperationMetadata
impl RefUnwindSafe for SetSuggestionFeatureConfigOperationMetadata
impl Send for SetSuggestionFeatureConfigOperationMetadata
impl Sync for SetSuggestionFeatureConfigOperationMetadata
impl Unpin for SetSuggestionFeatureConfigOperationMetadata
impl UnwindSafe for SetSuggestionFeatureConfigOperationMetadata
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