#[non_exhaustive]pub struct GetIntentRequest {
pub name: String,
pub language_code: String,
pub intent_view: IntentView,
/* private fields */
}Available on crate feature
intents only.Expand description
The request message for Intents.GetIntent.
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.name: StringRequired. The name of the intent.
Format: projects/<Project ID>/agent/intents/<Intent ID>.
language_code: StringOptional. The language used to access language-specific data. If not specified, the agent’s default language is used. For more information, see Multilingual intent and entity data.
intent_view: IntentViewOptional. The resource view to apply to the returned intent.
Implementations§
Source§impl GetIntentRequest
impl GetIntentRequest
pub fn new() -> Self
Sourcepub fn set_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of language_code.
§Example
ⓘ
let x = GetIntentRequest::new().set_language_code("example");Sourcepub fn set_intent_view<T: Into<IntentView>>(self, v: T) -> Self
pub fn set_intent_view<T: Into<IntentView>>(self, v: T) -> Self
Sets the value of intent_view.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::IntentView;
let x0 = GetIntentRequest::new().set_intent_view(IntentView::Full);Trait Implementations§
Source§impl Clone for GetIntentRequest
impl Clone for GetIntentRequest
Source§fn clone(&self) -> GetIntentRequest
fn clone(&self) -> GetIntentRequest
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 GetIntentRequest
impl Debug for GetIntentRequest
Source§impl Default for GetIntentRequest
impl Default for GetIntentRequest
Source§fn default() -> GetIntentRequest
fn default() -> GetIntentRequest
Returns the “default value” for a type. Read more
Source§impl Message for GetIntentRequest
impl Message for GetIntentRequest
Source§impl PartialEq for GetIntentRequest
impl PartialEq for GetIntentRequest
impl StructuralPartialEq for GetIntentRequest
Auto Trait Implementations§
impl Freeze for GetIntentRequest
impl RefUnwindSafe for GetIntentRequest
impl Send for GetIntentRequest
impl Sync for GetIntentRequest
impl Unpin for GetIntentRequest
impl UnwindSafe for GetIntentRequest
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