pub struct BedrockResponseRule {
pub prompt_contains: Option<String>,
pub response: String,
}Expand description
One rule in a per-model response rule list.
prompt_contains is a substring that must appear in the prompt for this
rule to match. None or an empty string matches any prompt.
Fields§
§prompt_contains: Option<String>§response: StringTrait Implementations§
Source§impl Clone for BedrockResponseRule
impl Clone for BedrockResponseRule
Source§fn clone(&self) -> BedrockResponseRule
fn clone(&self) -> BedrockResponseRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BedrockResponseRule
impl Debug for BedrockResponseRule
Source§impl<'de> Deserialize<'de> for BedrockResponseRule
impl<'de> Deserialize<'de> for BedrockResponseRule
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 BedrockResponseRule
impl RefUnwindSafe for BedrockResponseRule
impl Send for BedrockResponseRule
impl Sync for BedrockResponseRule
impl Unpin for BedrockResponseRule
impl UnsafeUnpin for BedrockResponseRule
impl UnwindSafe for BedrockResponseRule
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