Skip to main content

TestingLibraryOptions

Trait TestingLibraryOptions 

Source
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§

Source

fn new() -> Self
where Self: Sized,

Create a new instance with default values.

Source

fn to_json_string(&self) -> Result<String, Error>

Serialize this options struct to a JSON string.

Source

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".

Implementors§