#[non_exhaustive]pub struct RaiSettings {
pub rai_category_configs: Vec<RaiCategoryConfig>,
/* private fields */
}Available on crate features
conversation-profiles or conversations only.Expand description
Settings for Responsible AI checks.
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.rai_category_configs: Vec<RaiCategoryConfig>Configuration for a set of RAI categories.
Implementations§
Source§impl RaiSettings
impl RaiSettings
pub fn new() -> Self
Sourcepub fn set_rai_category_configs<T, V>(self, v: T) -> Self
pub fn set_rai_category_configs<T, V>(self, v: T) -> Self
Sets the value of rai_category_configs.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::rai_settings::RaiCategoryConfig;
let x = RaiSettings::new()
.set_rai_category_configs([
RaiCategoryConfig::default()/* use setters */,
RaiCategoryConfig::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for RaiSettings
impl Clone for RaiSettings
Source§fn clone(&self) -> RaiSettings
fn clone(&self) -> RaiSettings
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 RaiSettings
impl Debug for RaiSettings
Source§impl Default for RaiSettings
impl Default for RaiSettings
Source§fn default() -> RaiSettings
fn default() -> RaiSettings
Returns the “default value” for a type. Read more
Source§impl Message for RaiSettings
impl Message for RaiSettings
Source§impl PartialEq for RaiSettings
impl PartialEq for RaiSettings
impl StructuralPartialEq for RaiSettings
Auto Trait Implementations§
impl Freeze for RaiSettings
impl RefUnwindSafe for RaiSettings
impl Send for RaiSettings
impl Sync for RaiSettings
impl Unpin for RaiSettings
impl UnsafeUnpin for RaiSettings
impl UnwindSafe for RaiSettings
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