#[non_exhaustive]pub struct GetValidationResultRequest {
pub parent: String,
pub language_code: String,
/* private fields */
}Available on crate feature
agents only.Expand description
The request message for Agents.GetValidationResult.
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.parent: StringRequired. The project that the agent is associated with.
Format: projects/<Project ID>.
language_code: StringOptional. The language for which you want a validation result. If not specified, the agent’s default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.
Implementations§
Source§impl GetValidationResultRequest
impl GetValidationResultRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> 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 = GetValidationResultRequest::new().set_language_code("example");Trait Implementations§
Source§impl Clone for GetValidationResultRequest
impl Clone for GetValidationResultRequest
Source§fn clone(&self) -> GetValidationResultRequest
fn clone(&self) -> GetValidationResultRequest
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 GetValidationResultRequest
impl Debug for GetValidationResultRequest
Source§impl Default for GetValidationResultRequest
impl Default for GetValidationResultRequest
Source§fn default() -> GetValidationResultRequest
fn default() -> GetValidationResultRequest
Returns the “default value” for a type. Read more
Source§impl Message for GetValidationResultRequest
impl Message for GetValidationResultRequest
impl StructuralPartialEq for GetValidationResultRequest
Auto Trait Implementations§
impl Freeze for GetValidationResultRequest
impl RefUnwindSafe for GetValidationResultRequest
impl Send for GetValidationResultRequest
impl Sync for GetValidationResultRequest
impl Unpin for GetValidationResultRequest
impl UnwindSafe for GetValidationResultRequest
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