pub struct Config { /* private fields */ }
Expand description

Type specifying the configuration for the timelog program.

Implementations

Create a new Config object with supplied parameters

Errors

Create a new Config object from the supplied config file

Errors

Return a String containing the name of the config file.

Return the path of the directory that stores the log and stack files

Set the path of the directory that stores the log and stack files

Return the path to the editor used with the edit command

Set the path to the editor used with the edit command

The path to the browser used with the chart command

The path to the browser used with the chart command

Return the default command if none is entered

The file containing the timelog entries

The file that holds the stack

The file containing the timelog entries

Write the configuration to disk in the file specified by the Config

Errors

Return an iterator over the alias names

Retrieve the value associate with the named alias, if one exists.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Create a Config with all of the default parameters.

Panics

If any of the default valures are not legal in the current system, the code will panic. These is a programmer-specified defaults, and should never fail.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.