#[non_exhaustive]pub struct SanitizeUserPromptResponse {
pub sanitization_result: Option<SanitizationResult>,
/* private fields */
}Expand description
Sanitized User Prompt Response.
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.sanitization_result: Option<SanitizationResult>Output only. Sanitization Result.
Implementations§
Source§impl SanitizeUserPromptResponse
impl SanitizeUserPromptResponse
pub fn new() -> Self
Sourcepub fn set_sanitization_result<T>(self, v: T) -> Selfwhere
T: Into<SanitizationResult>,
pub fn set_sanitization_result<T>(self, v: T) -> Selfwhere
T: Into<SanitizationResult>,
Sets the value of sanitization_result.
Sourcepub fn set_or_clear_sanitization_result<T>(self, v: Option<T>) -> Selfwhere
T: Into<SanitizationResult>,
pub fn set_or_clear_sanitization_result<T>(self, v: Option<T>) -> Selfwhere
T: Into<SanitizationResult>,
Sets or clears the value of sanitization_result.
Trait Implementations§
Source§impl Clone for SanitizeUserPromptResponse
impl Clone for SanitizeUserPromptResponse
Source§fn clone(&self) -> SanitizeUserPromptResponse
fn clone(&self) -> SanitizeUserPromptResponse
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 SanitizeUserPromptResponse
impl Debug for SanitizeUserPromptResponse
Source§impl Default for SanitizeUserPromptResponse
impl Default for SanitizeUserPromptResponse
Source§fn default() -> SanitizeUserPromptResponse
fn default() -> SanitizeUserPromptResponse
Returns the “default value” for a type. Read more
Source§impl Message for SanitizeUserPromptResponse
impl Message for SanitizeUserPromptResponse
impl StructuralPartialEq for SanitizeUserPromptResponse
Auto Trait Implementations§
impl Freeze for SanitizeUserPromptResponse
impl RefUnwindSafe for SanitizeUserPromptResponse
impl Send for SanitizeUserPromptResponse
impl Sync for SanitizeUserPromptResponse
impl Unpin for SanitizeUserPromptResponse
impl UnwindSafe for SanitizeUserPromptResponse
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