Struct valid_toml::TomlData [] [src]

pub struct TomlData {
    pub warnings: LinkedList<Warning>,
    // some fields omitted
}

Contains the verified results from a TOML file. Only the data elements defined are stored from the TOML file. This object is not created unless the TOML data matches the definition so it is safe to assume required values are present and valid.

Fields

The list of warnings that were generated when reading in the TOML file.

Methods

impl TomlData
[src]

Construct a new instance of the object.

Returns a duration (in milliseconds) from the TOML file. If the value is optional and not defined then None is returned.

Panics

If the value is defined but not a duration this method will panic since that indicates a disconnect between the definition and the code reading the values.

Returns an i64 value from the TOML file. If the value is optional and not defined then None is returned.

Panics

If the value is defined but not an i64 value this method will panic since that indicates a disconnect between the definition and the code reading the values.

Returns an u16 value from the TOML file. If the value is optional and not defined then None is returned.

Panics

If the value is defined but not an u16 value this method will panic since that indicates a disconnect between the definition and the code reading the values.

Returns an usize value from the TOML file. If the value is optional and not defined then None is returned.

Panics

If the value is defined but not an usize value this method will panic since that indicates a disconnect between the definition and the code reading the values.

Returns an string value from the TOML file. If the value is optional and not defined then None is returned.

Panics

If the value is defined but not a string value this method will panic since that indicates a disconnect between the definition and the code reading the values.

Returns a required duration.

Panics

If the value is defined but not a duration this method will panic since that indicates a disconnect between the definition and the code reading the values.

If the value doesn't exist then this method will panic since that means the value is not actually required.

Returns a required i64 value.

Panics

If the value is defined but not an i64 value this method will panic since that indicates a disconnect between the definition and the code reading the values.

If the value doesn't exist then this method will panic since that means the value is not actually required.

Returns a required u16 value.

Panics

If the value is defined but not an u16 value this method will panic since that indicates a disconnect between the definition and the code reading the values.

If the value doesn't exist then this method will panic since that means the value is not actually required.

Returns a required usize value.

Panics

If the value is defined but not an usize value this method will panic since that indicates a disconnect between the definition and the code reading the values.

If the value doesn't exist then this method will panic since that means the value is not actually required.

Returns a required string value.

Panics

If the value is defined but not a string value this method will panic since that indicates a disconnect between the definition and the code reading the values.

If the value doesn't exist then this method will panic since that means the value is not actually required.