#[non_exhaustive]pub struct ToolParameterKVMatchSpec {
pub use_strict_string_match: bool,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for tool parameter key value match metric.
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.use_strict_string_match: boolOptional. Whether to use STRICT string match on parameter values.
Implementations§
Source§impl ToolParameterKVMatchSpec
impl ToolParameterKVMatchSpec
pub fn new() -> Self
Sourcepub fn set_use_strict_string_match<T: Into<bool>>(self, v: T) -> Self
pub fn set_use_strict_string_match<T: Into<bool>>(self, v: T) -> Self
Sets the value of use_strict_string_match.
§Example
ⓘ
let x = ToolParameterKVMatchSpec::new().set_use_strict_string_match(true);Trait Implementations§
Source§impl Clone for ToolParameterKVMatchSpec
impl Clone for ToolParameterKVMatchSpec
Source§fn clone(&self) -> ToolParameterKVMatchSpec
fn clone(&self) -> ToolParameterKVMatchSpec
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 ToolParameterKVMatchSpec
impl Debug for ToolParameterKVMatchSpec
Source§impl Default for ToolParameterKVMatchSpec
impl Default for ToolParameterKVMatchSpec
Source§fn default() -> ToolParameterKVMatchSpec
fn default() -> ToolParameterKVMatchSpec
Returns the “default value” for a type. Read more
Source§impl Message for ToolParameterKVMatchSpec
impl Message for ToolParameterKVMatchSpec
Source§impl PartialEq for ToolParameterKVMatchSpec
impl PartialEq for ToolParameterKVMatchSpec
impl StructuralPartialEq for ToolParameterKVMatchSpec
Auto Trait Implementations§
impl Freeze for ToolParameterKVMatchSpec
impl RefUnwindSafe for ToolParameterKVMatchSpec
impl Send for ToolParameterKVMatchSpec
impl Sync for ToolParameterKVMatchSpec
impl Unpin for ToolParameterKVMatchSpec
impl UnwindSafe for ToolParameterKVMatchSpec
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