[−][src]Struct stipulate::conf::TestConfig
This struct represents all of the configuration for a test run.
It is essentially a smart pointer to an object of type Config
,
with some extra convenience methods about using it.
Implementations
impl TestConfig
[src]
pub fn get_config(&self) -> &dyn Config
[src]
Returns a reference to the config contained in here
pub fn get_config_mut(&mut self) -> &mut dyn Config
[src]
Returns a mutable reference to the config contained in here
pub fn from_file(filename: &str) -> Result<TestConfig, Error>
[src]
Loads a given filename into a configuration
See TestConfig::from_toml_values
for information about what it
can do.
pub fn from_toml_values(values: Value) -> Result<TestConfig, Error>
[src]
Loads the configuration from the given parsed toml.
All keys and section headers should be lower-case (and it is case-sensitive).
The file should have one section header, whose name is the kind of test being run. The available options currently are "java" and "python".
Configuration options for java are at JavaConfig::from_toml
.
Configuration options for python are at PythonConfig::from_toml
.
Trait Implementations
impl Deref for TestConfig
[src]
type Target = dyn Config
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for TestConfig
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TestConfig
impl !Send for TestConfig
impl !Sync for TestConfig
impl Unpin for TestConfig
impl !UnwindSafe for TestConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,