Struct grafen::database::DataBase [] [src]

pub struct DataBase {
    pub path: Option<PathBuf>,
    pub residue_defs: Vec<Residue>,
    pub component_defs: Vec<ComponentEntry>,
}

A collection of residues and substrate configurations which can be saved to and read from disk.

Fields

A path to the DataBase location on the hard drive.

Definitions of Residue objects.

New component constructors.

Methods

impl DataBase
[src]

[src]

Construct an empty DataBase.

[src]

Get the database path enclosed in single quotes if it exists, otherwise the unenclosed string "None".

[src]

Set a new path for the DataBase. The input path is asserted to be a file and the extension is set to 'json'.

Trait Implementations

impl Clone for DataBase
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DataBase
[src]

[src]

Formats the value using the given formatter.

impl Describe for DataBase
[src]

[src]

Return a descriptive String of the object.

[src]

Return a very short descriptive String of the object. Typically just a name or type.