#[non_exhaustive]pub struct SanitizeUserPromptRequest {
pub name: String,
pub user_prompt_data: Option<DataItem>,
pub multi_language_detection_metadata: Option<MultiLanguageDetectionMetadata>,
/* private fields */
}Expand description
Sanitize User Prompt request.
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. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01
user_prompt_data: Option<DataItem>Required. User prompt data to sanitize.
multi_language_detection_metadata: Option<MultiLanguageDetectionMetadata>Optional. Metadata related to Multi Language Detection.
Implementations§
Source§impl SanitizeUserPromptRequest
impl SanitizeUserPromptRequest
pub fn new() -> Self
Sourcepub fn set_user_prompt_data<T>(self, v: T) -> Self
pub fn set_user_prompt_data<T>(self, v: T) -> Self
Sets the value of user_prompt_data.
Sourcepub fn set_or_clear_user_prompt_data<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_user_prompt_data<T>(self, v: Option<T>) -> Self
Sets or clears the value of user_prompt_data.
Sourcepub fn set_multi_language_detection_metadata<T>(self, v: T) -> Selfwhere
T: Into<MultiLanguageDetectionMetadata>,
pub fn set_multi_language_detection_metadata<T>(self, v: T) -> Selfwhere
T: Into<MultiLanguageDetectionMetadata>,
Sets the value of multi_language_detection_metadata.
Sourcepub fn set_or_clear_multi_language_detection_metadata<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<MultiLanguageDetectionMetadata>,
pub fn set_or_clear_multi_language_detection_metadata<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<MultiLanguageDetectionMetadata>,
Sets or clears the value of multi_language_detection_metadata.
Trait Implementations§
Source§impl Clone for SanitizeUserPromptRequest
impl Clone for SanitizeUserPromptRequest
Source§fn clone(&self) -> SanitizeUserPromptRequest
fn clone(&self) -> SanitizeUserPromptRequest
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 SanitizeUserPromptRequest
impl Debug for SanitizeUserPromptRequest
Source§impl Default for SanitizeUserPromptRequest
impl Default for SanitizeUserPromptRequest
Source§fn default() -> SanitizeUserPromptRequest
fn default() -> SanitizeUserPromptRequest
Returns the “default value” for a type. Read more
Source§impl Message for SanitizeUserPromptRequest
impl Message for SanitizeUserPromptRequest
impl StructuralPartialEq for SanitizeUserPromptRequest
Auto Trait Implementations§
impl Freeze for SanitizeUserPromptRequest
impl RefUnwindSafe for SanitizeUserPromptRequest
impl Send for SanitizeUserPromptRequest
impl Sync for SanitizeUserPromptRequest
impl Unpin for SanitizeUserPromptRequest
impl UnwindSafe for SanitizeUserPromptRequest
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