ConstraintOptionsBuilder

Trait ConstraintOptionsBuilder 

Source
pub trait ConstraintOptionsBuilder: Sized {
    // Required methods
    fn with_operator(self, operator: LogicalOperator) -> Self;
    fn with_threshold(self, threshold: f64) -> Self;
    fn with_option(self, name: &str, value: bool) -> Self;
}
Expand description

Builder pattern for constraint options.

This trait provides a fluent interface for configuring constraints with various options.

Required Methods§

Source

fn with_operator(self, operator: LogicalOperator) -> Self

Sets the logical operator for combining results.

Source

fn with_threshold(self, threshold: f64) -> Self

Sets the threshold value.

Source

fn with_option(self, name: &str, value: bool) -> Self

Enables or disables a boolean option.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§