pub trait TestingLibraryOptions: Serialize + Default {
// Provided methods
fn new() -> Self
where Self: Sized { ... }
fn to_json_string(&self) -> Result<String, Error> { ... }
fn to_json_value(&self) -> Result<Value, Error> { ... }
}Expand description
Common trait for all testing-library option types.
This trait provides standard methods for serialization and construction that are shared across all option types.
Provided Methods§
Sourcefn to_json_string(&self) -> Result<String, Error>
fn to_json_string(&self) -> Result<String, Error>
Serialize this options struct to a JSON string.
Sourcefn to_json_value(&self) -> Result<Value, Error>
fn to_json_value(&self) -> Result<Value, Error>
Serialize this options struct to a JSON value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".