pub struct ModelArmorConfig {
pub prompt_template_name: Option<String>,
pub response_template_name: Option<String>,
}Expand description
Configuration for Model Armor integrations of prompt and responses.
This data type is not supported in Gemini API.
Fields§
§prompt_template_name: Option<String>Optional. The name of the Model Armor template to use for prompt sanitization.
response_template_name: Option<String>Optional. The name of the Model Armor template to use for response sanitization.
Trait Implementations§
Source§impl Clone for ModelArmorConfig
impl Clone for ModelArmorConfig
Source§fn clone(&self) -> ModelArmorConfig
fn clone(&self) -> ModelArmorConfig
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 ModelArmorConfig
impl Debug for ModelArmorConfig
Source§impl Default for ModelArmorConfig
impl Default for ModelArmorConfig
Source§fn default() -> ModelArmorConfig
fn default() -> ModelArmorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelArmorConfig
impl<'de> Deserialize<'de> for ModelArmorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelArmorConfig
impl RefUnwindSafe for ModelArmorConfig
impl Send for ModelArmorConfig
impl Sync for ModelArmorConfig
impl Unpin for ModelArmorConfig
impl UnsafeUnpin for ModelArmorConfig
impl UnwindSafe for ModelArmorConfig
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