pub struct AssertDefinition {
pub name: String,
pub preset: Option<String>,
pub prompt: Option<String>,
pub assert_text: Option<String>,
}Expand description
Reusable assertion definition referenced by name from assert steps.
Fields§
§name: StringUnique name used to reference this definition from steps.
preset: Option<String>Predefined assertion preset name (e.g. no_error_on_page, text_visible).
prompt: Option<String>Custom LLM prompt for assertion evaluation.
assert_text: Option<String>Text that the text_visible preset checks for.
Trait Implementations§
Source§impl Clone for AssertDefinition
impl Clone for AssertDefinition
Source§fn clone(&self) -> AssertDefinition
fn clone(&self) -> AssertDefinition
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 AssertDefinition
impl Debug for AssertDefinition
Source§impl<'de> Deserialize<'de> for AssertDefinition
impl<'de> Deserialize<'de> for AssertDefinition
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 AssertDefinition
impl RefUnwindSafe for AssertDefinition
impl Send for AssertDefinition
impl Sync for AssertDefinition
impl Unpin for AssertDefinition
impl UnsafeUnpin for AssertDefinition
impl UnwindSafe for AssertDefinition
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